home *** CD-ROM | disk | FTP | other *** search
/ Software 2000 / Software 2000 Volume 1 (Disc 1 of 2).iso / utilities / u620.dms / in.adf < prev   
Amiga Disk Format (OFS)  |  1995-08-29  |  880.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Amiga Disk Format (OFS) (archive/adfOFS).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Amiga Disk Format (OFS) (archive/adfOFS) magic Supported
65% dexvert Amiga Disk Format (FFS) (archive/adfFFS) ext Supported
1% dexvert ABackup Disk Image (archive/abackupDiskImage) ext Unsupported
100% file Amiga DOS disk (DD 880 KiB), probably root block 880, bootable 0x43fa027b4eaeffa0.., "How To Code In C - 1" default
99% file data default
57% TrID Amiga Disk image File (OFS) default
42% TrID Amiga Disk image File (generic) default (weak)
100% siegfried fmt/1361 Amiga Disk File default
100% disktype Amiga OFS file system (non-intl.) Type "DOS\0" Size matches DD floppy default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 44 4f 53 00 4a 4a 6f 3c | 00 00 03 70 43 fa 02 7b |DOS.JJo<|...pC..{|
|00000010| 4e ae ff a0 20 40 4e 71 | 20 68 00 16 70 00 48 e7 |N... @Nq| h..p.H.|
|00000020| ff fe 41 fa 02 5a 43 fa | 02 4e 22 88 20 3c 00 00 |..A..ZC.|.N". <..|
|00000030| 32 c8 22 3c 00 01 00 02 | 2c 78 00 04 4e ae ff 3a |2."<....|,x..N..:|
|00000040| 49 fa 02 54 28 80 67 00 | 01 da 06 80 00 00 05 dc |I..T(.g.|........|
|00000050| 29 40 00 04 4e ae ff 7c | 22 54 22 fc 00 92 00 30 |)@..N..||"T"....0|
|00000060| 22 fc 00 94 00 d8 22 fc | 00 8e 2a 71 22 fc 00 90 |".....".|..*q"...|
|00000070| 2a d1 32 fc 00 e0 20 2c | 00 04 48 40 32 c0 32 fc |*.2... ,|..H@2.2.|
|00000080| 00 e2 48 40 32 c0 22 fc | 01 80 00 00 22 fc 01 82 |..H@2.".|...."...|
|00000090| 0f ff 30 3c 00 3c 32 3c | 00 10 61 00 01 9e 30 3c |..0<.<2<|..a...0<|
|000000a0| 00 87 32 3c 01 10 61 00 | 01 92 30 3c 00 d2 32 3c |..2<..a.|..0<..2<|
|000000b0| 01 00 61 00 01 86 22 fc | ff ff ff fe 4b f9 00 df |..a...".|....K...|
|000000c0| f0 00 3b 7c 03 e0 00 96 | 2b 54 00 80 42 6d 00 88 |..;|....|+T..Bm..|
|000000d0| 42 6d 01 02 42 6d 01 04 | 42 6d 01 08 3b 7c 10 00 |Bm..Bm..|Bm..;|..|
|000000e0| 01 00 3b 7c 83 80 00 96 | 43 fa 01 3e 2c 78 00 04 |..;|....|C..>,x..|
|000000f0| 4e ae fe 68 2c 40 41 fa | 01 7e 4e ae ff b8 29 40 |N..h,@A.|.~N...)@|
|00000100| 00 08 26 6c 00 04 70 00 | d7 fc 00 00 0b 2c 4b fa |..&l..p.|.....,K.|
|00000110| 02 c1 24 6c 00 08 24 6a | 00 22 10 1d 67 00 00 2e |..$l..$j|."..g...|
|00000120| b0 3c 00 7f 63 00 00 06 | 04 00 00 20 04 00 00 20 |.<..c...|... ... |
|00000130| d5 c0 76 07 16 92 17 52 | 00 2c 45 ea 00 c0 47 eb |..v....R|.,E...G.|
|00000140| 00 58 51 cb ff f0 47 eb | fd 41 60 c6 4b fa 01 54 |.XQ...G.|.A`.K..T|
|00000150| 7a 00 02 05 00 07 66 00 | 00 30 24 6c 00 08 24 6a |z.....f.|.0$l..$j|
|00000160| 00 22 d5 fc 00 00 05 40 | 70 00 10 1d 66 00 00 08 |.".....@|p...f...|
|00000170| 4b fa 01 30 60 f4 b0 3c | 00 7f 63 00 00 06 04 00 |K..0`..<|..c.....|
|00000180| 00 20 04 00 00 20 d5 c0 | 00 05 00 08 20 6c 00 04 |. ... ..|.... l..|
|00000190| d1 fc 00 00 1a fc 72 00 | 22 4a 30 39 00 df f0 06 |......r.|"J09....|
|000001a0| e0 48 b0 3c 00 50 62 f2 | 70 15 74 00 14 11 e3 52 |.H.<.Pb.|p.t....R|
|000001b0| eb 72 08 01 00 00 67 00 | 00 08 93 fc 00 00 00 c0 |.r....g.|........|
|000001c0| e5 e0 51 c8 ff fc 52 41 | b2 3c 00 10 66 da 20 3c |..Q...RA|.<..f. <|
|000001d0| 00 00 0e 00 51 c8 ff fe | 52 45 08 39 00 06 00 bf |....Q...|RE.9....|
|000001e0| e0 01 66 00 ff 6e 43 fa | 00 40 2c 78 00 04 4e ae |..f..nC.|.@,x..N.|
|000001f0| fe 68 20 40 4b f9 00 df | f0 00 2b 68 00 26 00 80 |.h @K...|..+h.&..|
|00000200| 42 6d 00 88 3b 7c 80 60 | 00 96 22 54 20 3c 00 00 |Bm..;|.`|.."T <..|
|00000210| 32 c8 2c 78 00 04 4e ae | ff 2e 2c 78 00 04 4e ae |2.,x..N.|..,x..N.|
|00000220| ff 76 4c df 7f ff 4e 75 | 67 72 61 70 68 69 63 73 |.vL...Nu|graphics|
|00000230| 2e 6c 69 62 72 61 72 79 | 00 00 34 3c 00 00 36 3c |.library|..4<..6<|
|00000240| 00 0e e1 48 00 00 00 0f | d4 41 32 c0 22 fc ff fe |...H....|.A2."...|
|00000250| 01 80 32 c2 06 40 01 00 | 51 cb ff ee 36 3c 00 0e |..2..@..|Q...6<..|
|00000260| 94 41 32 c0 22 fc ff fe | 01 80 32 c2 06 40 01 00 |.A2."...|..2..@..|
|00000270| 51 cb ff ee 4e 75 00 0b | af 14 00 08 00 01 74 6f |Q...Nu..|......to|
|00000280| 70 61 7a 2e 66 6f 6e 74 | 00 64 6f 73 2e 6c 69 62 |paz.font|.dos.lib|
|00000290| 72 61 72 79 00 00 00 0b | 0b 48 00 0b 11 24 00 00 |rary....|.H...$..|
|000002a0| 7c c8 20 50 4c 45 41 53 | 45 20 4c 4f 41 44 20 54 ||. PLEAS|E LOAD T|
|000002b0| 48 52 4f 55 47 48 20 57 | 4f 52 4b 42 45 4e 43 48 |HROUGH W|ORKBENCH|
|000002c0| 2c 20 4f 52 20 43 4c 49 | 20 44 49 52 45 43 54 4f |, OR CLI| DIRECTO|
|000002d0| 52 59 20 55 54 49 4c 49 | 54 59 20 54 4f 20 56 49 |RY UTILI|TY TO VI|
|000002e0| 45 57 20 46 49 4c 45 53 | 2e 20 00 00 00 00 00 00 |EW FILES|. ......|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 45 58 50 52 45 53 53 | 20 50 44 20 50 52 45 53 |.EXPRESS| PD PRES|
|000003e0| 45 4e 54 53 20 48 4f 57 | 20 54 4f 20 43 4f 44 45 |ENTS HOW| TO CODE|
|000003f0| 20 49 4e 20 43 20 31 2f | 32 00 00 00 00 00 00 00 | IN C 1/|2.......|
|00000400| 00 00 00 08 00 00 06 df | 00 00 00 01 00 00 01 e8 |........|........|
|00000410| 00 00 00 03 a0 e1 9b fd | e3 10 00 01 00 00 00 00 |........|........|
|00000420| 00 5a 00 21 00 62 00 1d | 00 06 00 03 00 01 00 39 |.Z.!.b..|.......9|
|00000430| e6 48 00 3a 86 58 00 00 | 00 00 00 00 00 00 00 00 |.H.:.X..|........|
|00000440| 00 00 00 00 00 00 00 01 | 04 6a 00 38 4a 70 00 00 |........|.j.8Jp..|
|00000450| 00 00 00 00 00 6f 00 00 | 00 15 00 00 00 00 00 00 |.....o..|........|
|00000460| 00 00 00 00 00 00 00 00 | 00 00 00 62 00 1d 00 03 |........|...b....|
|00000470| 00 02 f4 90 07 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 45 55 |........|......EU|
|00000490| 55 55 55 40 00 00 00 00 | 00 00 00 00 45 5f d5 55 |UUU@....|....E_.U|
|000004a0| 55 40 00 00 00 00 00 00 | 00 00 45 56 d5 55 55 45 |U@......|..EV.UUE|
|000004b0| 00 00 00 00 00 00 00 00 | 45 56 67 d7 d5 47 00 00 |........|EVg..G..|
|000004c0| 00 00 00 00 00 00 45 56 | 67 67 65 47 00 00 00 00 |......EV|ggeG....|
|000004d0| 00 00 00 00 45 56 66 66 | 45 47 00 00 00 00 00 00 |....EVff|EG......|
|000004e0| 00 00 45 56 c6 66 75 47 | 00 00 00 00 00 00 00 00 |..EV.fuG|........|
|000004f0| 45 5f c7 c7 c5 47 00 00 | 00 00 00 00 00 00 45 54 |E_...G..|......ET|
|00000500| 15 05 05 47 00 00 00 00 | 00 00 00 00 45 55 55 55 |...G....|....EUUU|
|00000510| 55 47 00 00 00 00 00 00 | 00 00 45 fd 75 75 55 47 |UG......|..E.uuUG|
|00000520| 00 00 00 00 00 00 00 00 | 45 cc 51 71 55 47 00 00 |........|E.QqUG..|
|00000530| 00 00 00 00 00 00 45 c4 | 75 71 7d 47 00 00 00 00 |......E.|uq}G....|
|00000540| 00 00 00 00 45 f5 71 71 | cd 47 00 00 00 00 00 00 |....E.qq|.G......|
|00000550| 00 00 45 c1 71 71 fc 47 | 00 00 00 00 00 00 00 00 |..E.qq.G|........|
|00000560| 45 c5 71 71 c0 47 00 00 | 00 00 00 00 00 00 45 e5 |E.qq.G..|......E.|
|00000570| 79 79 7d 47 00 00 00 00 | 00 00 00 00 45 05 41 41 |yy}G....|....E.AA|
|00000580| 41 47 00 00 00 00 00 00 | 00 00 45 55 55 55 55 47 |AG......|..EUUUUG|
|00000590| 00 00 00 00 00 00 00 00 | 45 55 55 55 55 47 00 00 |........|EUUUUG..|
|000005a0| 00 00 00 00 00 00 45 55 | 55 55 55 47 00 00 00 00 |......EU|UUUG....|
|000005b0| 00 00 00 00 45 55 55 55 | 55 47 00 00 00 00 00 00 |....EUUU|UG......|
|000005c0| 00 00 45 55 55 40 01 47 | 00 00 00 00 00 00 00 00 |..EUU@.G|........|
|000005d0| 45 55 55 55 55 47 00 00 | 00 00 00 00 00 00 00 00 |EUUUUG..|........|
|000005e0| 00 00 00 07 00 00 00 00 | 00 00 00 00 2f ff ff ff |........|..../...|
|000005f0| ff ff 00 00 00 00 00 00 | 00 00 15 55 55 55 55 55 |........|...UUUUU|
|00000600| 00 00 00 08 00 00 06 df | 00 00 00 02 00 00 01 e8 |........|........|
|00000610| 00 00 00 04 60 0b 04 32 | 00 00 00 00 00 00 00 00 |....`..2|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 01 ff ff |........|........|
|00000630| ff ff ff f8 00 00 00 00 | 00 00 00 01 ff ff ff ff |........|........|
|00000640| ff f8 00 00 00 00 00 00 | 00 01 ff f0 7f ff ff ff |........|........|
|00000650| c0 00 00 00 00 00 00 01 | ff f9 3f ff ff ff c0 00 |........|..?.....|
|00000660| 00 00 00 00 00 01 ff f9 | 9c 3c 3f fb c0 00 00 00 |........|.<?.....|
|00000670| 00 00 00 01 ff f9 99 99 | 9f fb c0 00 00 00 00 00 |........|........|
|00000680| 00 01 ff f9 99 99 ff fb | c0 00 00 00 00 00 00 01 |........|........|
|00000690| ff f9 39 99 9f fb c0 00 | 00 00 00 00 00 01 ff f0 |..9.....|........|
|000006a0| 7c 3c 3f fb c0 00 00 00 | 00 00 00 01 ff ff ff ff ||<?.....|........|
|000006b0| ff fb c0 00 00 00 00 00 | 00 01 ff ff ff ff ff fb |........|........|
|000006c0| c0 00 00 00 00 00 00 01 | fe 03 cf 8f ff fb c0 00 |........|........|
|000006d0| 00 00 00 00 00 01 ff 33 | ff cf ff fb c0 00 00 00 |.......3|........|
|000006e0| 00 00 00 01 ff 3f 8f cf | 87 fb c0 00 00 00 00 00 |.....?..|........|
|000006f0| 00 01 ff 0f cf cf 33 fb | c0 00 00 00 00 00 00 01 |......3.|........|
|00000700| ff 3f cf cf 03 fb c0 00 | 00 00 00 00 00 01 ff 3f |.?......|.......?|
|00000710| cf cf 3f fb c0 00 00 00 | 00 00 00 01 fe 1f 87 87 |..?.....|........|
|00000720| 87 fb c0 00 00 00 00 00 | 00 01 ff ff ff ff ff fb |........|........|
|00000730| c0 00 00 00 00 00 00 01 | ff ff ff ff ff fb c0 00 |........|........|
|00000740| 00 00 00 00 00 01 ff ff | ff ff ff fb c0 00 00 00 |........|........|
|00000750| 00 00 00 01 ff ff ff ff | ff fb c0 00 00 00 00 00 |........|........|
|00000760| 00 01 ff ff ff ff ff fb | c0 00 00 00 00 00 00 01 |........|........|
|00000770| ff ff ff ff ff fb c0 00 | 00 00 00 00 00 01 ff ff |........|........|
|00000780| ff ff ff fb c0 00 00 00 | 00 00 00 01 ff ff ff ff |........|........|
|00000790| ff fb c0 00 00 00 00 00 | 00 01 f8 00 00 00 00 03 |........|........|
|000007a0| c0 00 00 00 00 00 00 00 | ff ff ff ff ff ff c0 00 |........|........|
|000007b0| 00 00 00 00 00 00 7f ff | ff ff ff ff c0 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 00 00 00 08 00 00 06 df | 00 00 00 03 00 00 01 e8 |........|........|
|00000810| 00 00 00 05 9d 40 e5 93 | 00 00 00 00 00 00 00 00 |.....@..|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000880| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000890| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 62 00 1d 00 03 00 02 | f9 58 07 00 00 00 00 00 |.b......|.X......|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 2a aa |........|......*.|
|00000990| aa aa aa a8 05 55 55 55 | 55 55 00 00 37 ff ff ff |.....UUU|UU..7...|
|000009a0| ff fe bf ff ff ff ff fb | 00 00 37 ff ff ff ff fe |........|..7.....|
|000009b0| bf ff ff ff ff fb 00 00 | 37 ff ff ff ff fe bf ff |........|7.......|
|000009c0| ff ff ff fb 00 00 37 ea | aa aa aa e0 03 ea aa aa |......7.|........|
|000009d0| aa bb 00 00 37 ff ff ff | ff fe bf ff ff ff ff fb |....7...|........|
|000009e0| 00 00 37 ff ff ff ff fe | bf aa aa aa aa bb 00 00 |..7.....|........|
|000009f0| 37 ff ff ff ff fe bf ff | ff ff ff fb 00 00 37 d5 |7.......|......7.|
|00000a00| 00 00 00 08 00 00 06 df | 00 00 00 04 00 00 01 e8 |........|........|
|00000a10| 00 00 00 06 b1 ed 1b f6 | 55 55 55 7e bf aa aa aa |........|UUU~....|
|00000a20| aa bb 00 00 37 ff ff ff | ff fe bf ff ff ff ff fb |....7...|........|
|00000a30| 00 00 37 55 55 55 55 7e | bf aa aa aa aa bb 00 00 |..7UUUU~|........|
|00000a40| 37 ff ff ff ff fe bf ff | ff ff ff fb 00 00 37 55 |7.......|......7U|
|00000a50| 55 55 55 7e bf aa aa aa | aa bb 00 00 37 ff ff ff |UUU~....|....7...|
|00000a60| ff e0 03 ff ff ff ff fb | 00 00 37 55 55 55 55 7e |........|..7UUUU~|
|00000a70| bf aa aa aa aa bb 00 00 | 37 ff ff ff ff fe bf ff |........|7.......|
|00000a80| ff ff ff fb 00 00 37 d5 | 55 55 55 7e bf aa aa aa |......7.|UUU~....|
|00000a90| aa bb 00 00 37 ff ff ff | ff fe bf ff ff ff ff fb |....7...|........|
|00000aa0| 00 00 37 55 55 55 55 7e | bf aa aa aa aa bb 00 00 |..7UUUU~|........|
|00000ab0| 37 ff ff ff ff fe bf ff | ff ff ff fb 00 00 37 55 |7.......|......7U|
|00000ac0| 55 55 55 7e bf aa aa aa | aa bb 00 00 37 ff ff ff |UUU~....|....7...|
|00000ad0| ff fe bf ff ff ff ff fb | 00 00 37 ff ff ff ff e0 |........|..7.....|
|00000ae0| 03 ff ff ff ff fb 00 00 | 37 ff ff 5f ff fe bf ff |........|7.._....|
|00000af0| fe bf ff fb 00 00 37 ff | ff ff ff fe bf ff ff ff |......7.|........|
|00000b00| ff fb 00 00 30 00 00 00 | 00 00 80 00 00 00 00 03 |....0...|........|
|00000b10| 00 00 2a aa aa aa aa a8 | 05 55 55 55 55 55 00 00 |..*.....|.UUUUU..|
|00000b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 ff ff |........|........|
|00000b30| ff ff ff fe 1f ff ff ff | ff ff c0 00 ff ff ff ff |........|........|
|00000b40| ff ff ff ff ff ff ff ff | c0 00 f8 00 00 00 00 01 |........|........|
|00000b50| c0 00 00 00 00 07 c0 00 | f8 00 00 00 00 01 c0 00 |........|........|
|00000b60| 00 00 00 07 c0 00 f8 00 | 00 00 00 01 c0 00 00 00 |........|........|
|00000b70| 00 07 c0 00 f8 00 00 00 | 00 1f fc 15 55 55 55 47 |........|....UUUG|
|00000b80| c0 00 f8 00 00 00 00 01 | c0 00 00 00 00 07 c0 00 |........|........|
|00000b90| f8 00 00 00 00 01 c0 55 | 55 55 55 47 c0 00 f8 00 |.......U|UUUG....|
|00000ba0| 00 00 00 01 c0 00 00 00 | 00 07 c0 00 f8 2a aa aa |........|.....*..|
|00000bb0| aa 81 c0 55 55 55 55 47 | c0 00 f8 00 00 00 00 01 |...UUUUG|........|
|00000bc0| c0 00 00 00 00 07 c0 00 | f8 aa aa aa aa 81 c0 55 |........|.......U|
|00000bd0| 55 55 55 47 c0 00 f8 00 | 00 00 00 01 c0 00 00 00 |UUUG....|........|
|00000be0| 00 07 c0 00 f8 aa aa aa | aa 81 c0 55 55 55 55 47 |........|...UUUUG|
|00000bf0| c0 00 f8 00 00 00 00 1f | fc 00 00 00 00 07 c0 00 |........|........|
|00000c00| 00 00 00 08 00 00 06 df | 00 00 00 05 00 00 01 e8 |........|........|
|00000c10| 00 00 00 07 0d 8a 20 c4 | f8 aa aa aa aa 81 c0 55 |...... .|.......U|
|00000c20| 55 55 55 47 c0 00 f8 00 | 00 00 00 01 c0 00 00 00 |UUUG....|........|
|00000c30| 00 07 c0 00 f8 2a aa aa | aa 81 c0 55 55 55 55 47 |.....*..|...UUUUG|
|00000c40| c0 00 f8 00 00 00 00 01 | c0 00 00 00 00 07 c0 00 |........|........|
|00000c50| f8 aa aa aa aa 81 c0 55 | 55 55 55 47 c0 00 f8 00 |.......U|UUUG....|
|00000c60| 00 00 00 01 c0 00 00 00 | 00 07 c0 00 f8 aa aa aa |........|........|
|00000c70| aa 81 c0 55 55 55 55 47 | c0 00 f8 00 00 00 00 01 |...UUUUG|........|
|00000c80| c0 00 00 00 00 07 c0 00 | f8 00 00 00 00 1f fc 00 |........|........|
|00000c90| 00 00 00 07 c0 00 f8 00 | 00 a0 00 01 c0 00 01 40 |........|.......@|
|00000ca0| 00 07 c0 00 f8 00 00 00 | 00 01 c0 00 00 00 00 07 |........|........|
|00000cb0| c0 00 ff ff ff ff ff ff | ff ff ff ff ff ff c0 00 |........|........|
|00000cc0| ff ff ff ff ff ff ff ff | ff ff ff ff c0 00 ff ff |........|........|
|00000cd0| ff ff ff fe 1f ff ff ff | ff ff c0 00 00 00 00 00 |........|........|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 00 00 00 08 00 00 06 df | 00 00 00 06 00 00 00 82 |........|........|
|00000e10| 00 00 00 00 ab 4d d8 1b | 00 00 00 00 00 00 00 00 |.....M..|........|
|00000e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 0c 3a 63 |........|......:c|
|00000e90| 2f 4d 75 63 68 4d 6f 72 | 65 00 00 01 c0 00 01 40 |/MuchMor|e......@|
|00000ea0| 00 07 c0 00 f8 00 00 00 | 00 01 c0 00 00 00 00 07 |........|........|
|00000eb0| c0 00 ff ff ff ff ff ff | ff ff ff ff ff ff c0 00 |........|........|
|00000ec0| ff ff ff ff ff ff ff ff | ff ff ff ff c0 00 ff ff |........|........|
|00000ed0| ff ff ff fe 1f ff ff ff | ff ff c0 00 00 00 00 00 |........|........|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001000| 00 00 00 02 00 00 00 08 | 00 00 00 1a 00 00 00 00 |........|........|
|00001010| 00 00 00 09 28 5d d8 35 | 00 00 00 00 00 00 00 00 |....(].5|........|
|00001020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001080| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010d0| 00 00 00 22 00 00 00 21 | 00 00 00 20 00 00 00 1f |..."...!|... ....|
|000010e0| 00 00 00 1e 00 00 00 1d | 00 00 00 1c 00 00 00 1b |........|........|
|000010f0| 00 00 00 1a 00 00 00 19 | 00 00 00 18 00 00 00 17 |........|........|
|00001100| 00 00 00 16 00 00 00 15 | 00 00 00 14 00 00 00 13 |........|........|
|00001110| 00 00 00 12 00 00 00 11 | 00 00 00 10 00 00 00 0f |........|........|
|00001120| 00 00 00 0e 00 00 00 0d | 00 00 00 0c 00 00 00 0b |........|........|
|00001130| 00 00 00 0a 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00001140| 00 00 00 00 00 00 30 96 | 00 00 00 00 00 00 00 00 |......0.|........|
|00001150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011a0| 00 00 00 00 00 00 14 71 | 00 00 00 05 00 00 09 c4 |.......q|........|
|000011b0| 08 73 6b 65 6c 2e 64 6f | 63 00 00 00 00 00 00 00 |.skel.do|c.......|
|000011c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 06 ce | 00 00 00 00 ff ff ff fd |........|........|
|00001200| 00 00 00 08 00 00 00 08 | 00 00 00 01 00 00 01 e8 |........|........|
|00001210| 00 00 00 0a dc f3 94 18 | 0a 0a 0a 0a 0a 1b 5b 32 |........|......[2|
|00001220| 22 7a 0a 1b 5b 31 6d 0a | 0a 20 20 20 20 20 20 20 |"z..[1m.|. |
|00001230| 20 20 20 20 20 20 20 20 | 20 20 53 6b 65 6c 65 74 | | Skelet|
|00001240| 6f 6e 20 57 6f 72 6b 62 | 65 6e 63 68 20 41 70 70 |on Workb|ench App|
|00001250| 6c 69 63 61 74 69 6f 6e | 0a 20 20 20 20 20 20 20 |lication|. |
|00001260| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001270| 20 20 20 62 79 20 4a 6f | 65 6c 20 53 77 61 6e 6b | by Jo|el Swank|
|00001280| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001290| 20 20 20 20 20 20 20 20 | 20 20 4a 61 6e 75 61 72 | | Januar|
|000012a0| 79 20 39 2c 20 31 39 38 | 39 0a 1b 5b 32 32 6d 0a |y 9, 198|9..[22m.|
|000012b0| 0a 0a 0a 20 20 20 20 54 | 68 65 20 53 6b 65 6c 65 |... T|he Skele|
|000012c0| 74 6f 6e 20 20 57 6f 72 | 6b 62 65 6e 63 68 20 20 |ton Wor|kbench |
|000012d0| 41 70 70 6c 69 63 61 74 | 69 6f 6e 20 20 69 73 20 |Applicat|ion is |
|000012e0| 20 6d 79 20 20 61 74 74 | 65 6d 70 74 20 74 6f 20 | my att|empt to |
|000012f0| 6d 61 6b 65 0a 77 72 69 | 74 69 6e 67 20 20 77 6f |make.wri|ting wo|
|00001300| 72 6b 62 65 6e 63 68 20 | 20 61 70 70 6c 69 63 61 |rkbench | applica|
|00001310| 74 69 6f 6e 73 20 20 28 | 61 6c 6d 6f 73 74 29 20 |tions (|almost) |
|00001320| 61 73 20 65 61 73 79 20 | 61 73 20 77 72 69 74 69 |as easy |as writi|
|00001330| 6e 67 20 43 4c 49 0a 61 | 70 70 6c 69 63 61 74 69 |ng CLI.a|pplicati|
|00001340| 6f 6e 73 2e 20 20 20 57 | 68 65 6e 20 20 49 20 62 |ons. W|hen I b|
|00001350| 65 67 61 6e 20 61 64 64 | 69 6e 67 20 49 6e 74 75 |egan add|ing Intu|
|00001360| 69 74 69 6f 6e 20 69 6e | 74 65 72 66 61 63 65 73 |ition in|terfaces|
|00001370| 20 74 6f 20 73 6f 6d 65 | 0a 6f 66 20 20 6d 79 20 | to some|.of my |
|00001380| 20 43 4c 49 20 20 75 74 | 69 6c 69 74 69 65 73 20 | CLI ut|ilities |
|00001390| 20 49 20 66 6f 75 6e 64 | 20 74 68 61 74 20 49 20 | I found| that I |
|000013a0| 6e 65 65 64 65 64 20 65 | 73 65 6e 74 69 61 6c 6c |needed e|sentiall|
|000013b0| 79 20 74 68 65 20 73 61 | 6d 65 0a 72 6f 75 74 69 |y the sa|me.routi|
|000013c0| 6e 65 73 20 20 69 6e 20 | 20 65 61 63 68 2e 20 20 |nes in | each. |
|000013d0| 53 6f 20 49 20 64 65 63 | 69 64 65 64 20 74 6f 20 |So I dec|ided to |
|000013e0| 6d 61 6b 65 20 61 20 73 | 6b 65 6c 65 74 6f 6e 20 |make a s|keleton |
|000013f0| 70 72 6f 67 72 61 6d 20 | 74 68 61 74 0a 70 72 6f |program |that.pro|
|00001400| 00 00 00 08 00 00 00 08 | 00 00 00 02 00 00 01 e8 |........|........|
|00001410| 00 00 00 0b 2a f3 2c 76 | 76 69 64 65 73 20 20 61 |....*.,v|vides a|
|00001420| 6c 6c 20 20 74 68 65 20 | 20 62 61 73 69 63 20 72 |ll the | basic r|
|00001430| 6f 75 74 69 6e 65 73 20 | 6e 65 65 64 65 64 20 62 |outines |needed b|
|00001440| 79 20 6d 6f 73 74 20 61 | 70 70 6c 69 63 61 74 69 |y most a|pplicati|
|00001450| 6f 6e 73 2e 20 49 0a 6e | 6f 77 20 20 68 61 76 65 |ons. I.n|ow have|
|00001460| 20 20 61 20 20 27 53 6b | 65 6c 27 20 20 64 69 72 | a 'Sk|el' dir|
|00001470| 65 63 74 6f 72 79 20 20 | 74 68 61 74 20 20 49 20 |ectory |that I |
|00001480| 20 63 6f 70 79 20 20 74 | 6f 20 20 73 74 61 72 74 | copy t|o start|
|00001490| 20 20 20 61 20 6e 65 77 | 0a 61 70 70 6c 69 63 61 | a new|.applica|
|000014a0| 74 69 6f 6e 2e 20 20 54 | 68 65 6e 20 20 49 20 72 |tion. T|hen I r|
|000014b0| 65 6e 61 6d 65 20 61 6e | 64 20 6d 6f 64 69 66 79 |ename an|d modify|
|000014c0| 20 65 61 63 68 20 6f 66 | 20 74 68 65 20 66 69 6c | each of| the fil|
|000014d0| 65 73 20 74 6f 20 73 75 | 69 74 0a 74 68 65 20 6e |es to su|it.the n|
|000014e0| 65 77 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 2e 20 |ew appli|cation. |
|000014f0| 20 0a 20 20 20 54 68 65 | 20 53 6b 65 6c 20 64 69 | . The| Skel di|
|00001500| 72 65 63 74 6f 72 79 20 | 63 6f 6e 74 61 69 6e 73 |rectory |contains|
|00001510| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 66 | the fol|lowing f|
|00001520| 69 6c 65 73 3a 0a 0a 20 | 20 20 20 20 2a 20 6d 61 |iles:.. | * ma|
|00001530| 6b 65 66 69 6c 65 3a 20 | 46 69 6c 65 20 74 6f 20 |kefile: |File to |
|00001540| 63 6f 6d 70 69 6c 65 20 | 53 6b 65 6c 65 74 6f 6e |compile |Skeleton|
|00001550| 20 75 73 69 6e 67 20 41 | 7a 74 65 63 20 43 2e 0a | using A|ztec C..|
|00001560| 20 20 20 20 20 2a 20 73 | 6b 65 6c 2e 63 3a 20 20 | * s|kel.c: |
|00001570| 20 4d 61 69 6e 6c 69 6e | 65 2c 20 69 6e 69 74 69 | Mainlin|e, initi|
|00001580| 61 6c 69 7a 61 74 69 6f | 6e 2f 74 65 72 6d 69 6e |alizatio|n/termin|
|00001590| 61 74 69 6f 6e 2c 0a 20 | 20 20 20 20 20 20 20 20 |ation,. | |
|000015a0| 20 20 20 20 20 20 20 20 | 47 61 64 67 65 74 20 61 | |Gadget a|
|000015b0| 6e 64 20 4d 65 6e 75 20 | 68 61 6e 64 6c 69 6e 67 |nd Menu |handling|
|000015c0| 2e 0a 20 20 20 20 20 2a | 20 73 6b 77 69 6e 64 6f |.. *| skwindo|
|000015d0| 77 2e 68 3a 20 44 61 74 | 61 20 73 74 72 75 63 74 |w.h: Dat|a struct|
|000015e0| 75 72 65 73 20 66 6f 72 | 20 6d 61 69 6e 20 77 69 |ures for| main wi|
|000015f0| 6e 64 6f 77 2e 0a 20 20 | 20 20 20 2a 20 64 6f 61 |ndow.. | * doa|
|00001600| 00 00 00 08 00 00 00 08 | 00 00 00 03 00 00 01 e8 |........|........|
|00001610| 00 00 00 0c 85 92 5c 2e | 72 67 73 2e 63 3a 20 41 |......\.|rgs.c: A|
|00001620| 67 72 75 6d 65 6e 74 20 | 70 72 6f 63 65 73 73 69 |grument |processi|
|00001630| 6e 67 20 66 6f 72 20 57 | 6f 72 6b 62 65 6e 63 68 |ng for W|orkbench|
|00001640| 20 61 6e 64 20 43 4c 49 | 2e 0a 20 20 20 20 20 2a | and CLI|.. *|
|00001650| 20 61 62 6f 75 74 68 65 | 6c 70 2e 63 3a 20 48 65 | abouthe|lp.c: He|
|00001660| 6c 70 20 77 69 6e 64 6f | 77 20 61 6e 64 20 41 62 |lp windo|w and Ab|
|00001670| 6f 75 74 20 52 65 71 75 | 65 73 74 65 72 20 70 72 |out Requ|ester pr|
|00001680| 6f 63 65 73 73 69 6e 67 | 2e 0a 20 20 20 20 20 2a |ocessing|.. *|
|00001690| 20 68 65 6c 70 77 69 6e | 2e 68 3a 20 44 61 74 61 | helpwin|.h: Data|
|000016a0| 20 73 74 72 75 63 74 75 | 72 65 73 20 66 6f 72 20 | structu|res for |
|000016b0| 68 65 6c 70 20 77 69 6e | 64 6f 77 2e 0a 20 20 20 |help win|dow.. |
|000016c0| 20 20 2a 20 73 6b 65 6c | 2e 69 6e 66 6f 3a 20 54 | * skel|.info: T|
|000016d0| 6f 6f 6c 20 69 63 6f 6e | 20 66 6f 72 20 77 6f 72 |ool icon| for wor|
|000016e0| 6b 62 65 6e 63 68 20 73 | 74 61 72 74 75 70 2e 0a |kbench s|tartup..|
|000016f0| 0a 20 20 20 46 6f 6c 6c | 6f 77 69 6e 67 20 69 73 |. Foll|owing is|
|00001700| 20 20 20 61 20 20 20 64 | 65 73 63 72 69 70 74 69 | a d|escripti|
|00001710| 6f 6e 20 20 6f 66 20 20 | 74 68 65 20 20 53 6b 65 |on of |the Ske|
|00001720| 6c 65 74 6f 6e 20 20 61 | 6e 64 20 20 68 6f 77 20 |leton a|nd how |
|00001730| 20 49 0a 63 75 73 74 6f | 6d 69 7a 65 20 69 74 20 | I.custo|mize it |
|00001740| 20 66 6f 72 20 61 20 6e | 65 77 20 61 70 70 6c 69 | for a n|ew appli|
|00001750| 63 61 74 69 6f 6e 2e 20 | 20 0a 20 20 20 49 20 72 |cation. | . I r|
|00001760| 65 6e 61 6d 65 20 20 73 | 6b 65 6c 2e 63 20 20 61 |ename s|kel.c a|
|00001770| 6e 64 20 20 65 64 69 74 | 20 69 74 20 74 6f 20 62 |nd edit| it to b|
|00001780| 65 20 74 68 65 20 6e 65 | 77 20 6d 61 69 6e 20 72 |e the ne|w main r|
|00001790| 6f 75 74 69 6e 65 2e 20 | 54 68 65 0a 6d 61 69 6e |outine. |The.main|
|000017a0| 28 29 20 20 72 6f 75 74 | 69 6e 65 20 20 66 69 72 |() rout|ine fir|
|000017b0| 73 74 20 73 65 74 73 20 | 75 70 20 61 6e 79 20 64 |st sets |up any d|
|000017c0| 65 66 61 75 6c 74 73 20 | 6e 65 65 64 65 64 2e 20 |efaults |needed. |
|000017d0| 54 68 65 6e 20 69 74 20 | 6f 70 65 6e 73 0a 61 6e |Then it |opens.an|
|000017e0| 79 20 20 20 6c 69 62 72 | 61 72 69 65 73 20 20 74 |y libr|aries t|
|000017f0| 68 61 74 20 20 61 72 65 | 20 20 6e 65 65 64 65 64 |hat are| needed|
|00001800| 00 00 00 08 00 00 00 08 | 00 00 00 04 00 00 01 e8 |........|........|
|00001810| 00 00 00 0d 6d 59 93 52 | 2e 20 20 4e 65 78 74 20 |....mY.R|. Next |
|00001820| 20 69 74 20 20 63 61 6c | 6c 73 20 20 65 69 74 68 | it cal|ls eith|
|00001830| 65 72 20 20 74 68 65 0a | 57 6f 72 6b 62 65 6e 63 |er the.|Workbenc|
|00001840| 68 20 20 6f 72 20 20 43 | 4c 49 20 61 72 67 75 6d |h or C|LI argum|
|00001850| 65 6e 74 20 72 6f 75 74 | 69 6e 65 2e 20 4e 65 78 |ent rout|ine. Nex|
|00001860| 74 20 69 74 20 73 65 74 | 73 20 75 70 20 74 68 65 |t it set|s up the|
|00001870| 20 67 61 64 67 65 74 73 | 2c 0a 6f 70 65 6e 73 20 | gadgets|,.opens |
|00001880| 20 74 68 65 20 20 6d 61 | 69 6e 20 20 20 77 69 6e | the ma|in win|
|00001890| 64 6f 77 2c 20 20 61 6e | 64 20 20 61 74 74 61 63 |dow, an|d attac|
|000018a0| 68 65 73 20 20 74 68 65 | 20 20 6d 65 6e 75 2e 20 |hes the| menu. |
|000018b0| 46 69 6e 61 6c 6c 79 2c | 20 69 74 0a 77 72 69 74 |Finally,| it.writ|
|000018c0| 65 73 20 74 68 65 20 77 | 69 6e 64 6f 77 20 74 65 |es the w|indow te|
|000018d0| 78 74 20 61 6e 64 20 77 | 61 69 74 73 20 66 6f 72 |xt and w|aits for|
|000018e0| 20 61 20 6d 65 73 73 61 | 67 65 20 66 72 6f 6d 20 | a messa|ge from |
|000018f0| 49 6e 74 75 69 74 69 6f | 6e 2e 20 20 0a 20 20 20 |Intuitio|n. . |
|00001900| 54 68 65 20 64 6f 6e 65 | 28 29 20 20 73 75 62 72 |The done|() subr|
|00001910| 6f 75 74 69 6e 65 20 20 | 69 73 20 20 74 68 65 20 |outine |is the |
|00001920| 74 65 72 6d 69 6e 61 74 | 69 6f 6e 20 72 6f 75 74 |terminat|ion rout|
|00001930| 69 6e 65 2e 20 49 74 20 | 63 6c 6f 73 65 73 0a 6f |ine. It |closes.o|
|00001940| 72 20 20 66 72 65 65 73 | 20 65 76 65 72 79 74 68 |r frees| everyth|
|00001950| 69 6e 67 20 6f 70 65 6e | 65 64 20 6f 72 20 61 6c |ing open|ed or al|
|00001960| 6c 6f 63 61 74 65 64 20 | 62 79 20 74 68 65 20 70 |located |by the p|
|00001970| 72 6f 67 72 61 6d 2e 20 | 57 68 65 6e 65 76 65 72 |rogram. |Whenever|
|00001980| 0a 49 20 20 61 64 64 20 | 20 73 6f 6d 65 74 68 69 |.I add | somethi|
|00001990| 6e 67 20 20 74 6f 20 20 | 74 68 65 20 20 69 6e 69 |ng to |the ini|
|000019a0| 74 69 61 6c 69 7a 61 74 | 69 6f 6e 2c 20 20 49 20 |tializat|ion, I |
|000019b0| 61 64 64 20 61 20 63 6f | 72 65 73 70 6f 6e 64 69 |add a co|respondi|
|000019c0| 6e 67 0a 65 6e 74 72 79 | 20 20 74 6f 20 20 64 6f |ng.entry| to do|
|000019d0| 6e 65 28 29 2e 20 20 54 | 68 69 73 20 20 69 73 20 |ne(). T|his is |
|000019e0| 76 65 72 79 20 69 6d 70 | 6f 72 74 61 6e 74 20 73 |very imp|ortant s|
|000019f0| 69 6e 63 65 20 41 6d 69 | 67 61 44 4f 53 20 68 61 |ince Ami|gaDOS ha|
|00001a00| 00 00 00 08 00 00 00 08 | 00 00 00 05 00 00 01 e8 |........|........|
|00001a10| 00 00 00 0e e0 68 63 50 | 73 20 6e 6f 0a 72 65 73 |.....hcP|s no.res|
|00001a20| 6f 75 72 63 65 20 20 74 | 72 61 63 6b 69 6e 67 2e |ource t|racking.|
|00001a30| 20 49 66 20 61 20 70 72 | 6f 67 72 61 6d 20 61 6c | If a pr|ogram al|
|00001a40| 6c 6f 63 61 74 65 73 20 | 61 20 72 65 73 6f 75 72 |locates |a resour|
|00001a50| 63 65 20 61 6e 64 20 64 | 6f 65 73 6e 27 74 0a 66 |ce and d|oesn't.f|
|00001a60| 72 65 65 20 20 69 74 2c | 20 20 74 68 61 74 20 20 |ree it,| that |
|00001a70| 72 65 73 6f 75 72 63 65 | 20 20 69 73 20 20 67 6f |resource| is go|
|00001a80| 6e 65 20 20 75 6e 74 69 | 6c 20 20 6e 65 78 74 20 |ne unti|l next |
|00001a90| 20 62 6f 6f 74 2e 20 20 | 54 68 65 20 64 6f 6e 65 | boot. |The done|
|00001aa0| 0a 72 6f 75 74 69 6e 65 | 20 20 69 73 20 20 63 61 |.routine| is ca|
|00001ab0| 6c 6c 65 64 20 20 66 72 | 6f 6d 20 20 77 68 65 72 |lled fr|om wher|
|00001ac0| 65 76 65 72 20 20 70 72 | 6f 67 72 61 6d 20 65 78 |ever pr|ogram ex|
|00001ad0| 69 74 20 69 73 20 72 65 | 71 75 69 72 65 64 2e 20 |it is re|quired. |
|00001ae0| 49 74 0a 61 63 63 65 70 | 74 73 20 20 61 20 20 72 |It.accep|ts a r|
|00001af0| 65 74 75 72 6e 20 20 63 | 6f 64 65 20 20 74 68 61 |eturn c|ode tha|
|00001b00| 74 20 20 69 73 20 20 70 | 61 73 73 65 64 20 74 6f |t is p|assed to|
|00001b10| 20 74 68 65 20 65 78 69 | 74 20 72 6f 75 74 69 6e | the exi|t routin|
|00001b20| 65 20 74 6f 0a 62 65 63 | 6f 6d 65 20 20 74 68 65 |e to.bec|ome the|
|00001b30| 20 65 72 72 6f 72 20 63 | 6f 64 65 20 66 6f 72 20 | error c|ode for |
|00001b40| 74 68 65 20 70 72 6f 67 | 72 61 6d 2e 20 4e 6f 74 |the prog|ram. Not|
|00001b50| 69 63 65 20 74 68 61 74 | 20 64 6f 6e 65 28 29 20 |ice that| done() |
|00001b60| 63 68 65 63 6b 73 0a 74 | 6f 20 20 73 65 65 20 20 |checks.t|o see |
|00001b70| 69 66 20 61 20 72 65 73 | 6f 75 72 63 65 20 69 73 |if a res|ource is|
|00001b80| 20 61 6c 6c 6f 63 61 74 | 65 64 20 62 65 66 6f 72 | allocat|ed befor|
|00001b90| 65 20 63 6c 6f 73 69 6e | 67 20 6f 72 20 66 72 65 |e closin|g or fre|
|00001ba0| 65 69 6e 67 20 69 74 2e | 0a 54 68 69 73 20 20 61 |eing it.|.This a|
|00001bb0| 6c 6c 6f 77 73 20 20 69 | 74 20 20 74 6f 20 62 65 |llows i|t to be|
|00001bc0| 20 63 61 6c 6c 65 64 20 | 61 74 20 61 6e 79 20 74 | called |at any t|
|00001bd0| 69 6d 65 20 61 6e 64 20 | 69 74 20 77 69 6c 6c 20 |ime and |it will |
|00001be0| 6f 6e 6c 79 20 63 6c 6f | 73 65 0a 74 68 61 74 20 |only clo|se.that |
|00001bf0| 20 77 68 69 63 68 20 20 | 68 61 73 20 20 62 65 65 | which |has bee|
|00001c00| 00 00 00 08 00 00 00 08 | 00 00 00 06 00 00 01 e8 |........|........|
|00001c10| 00 00 00 0f e0 9b 9d b0 | 6e 20 20 6f 70 65 6e 65 |........|n opene|
|00001c20| 64 2e 20 20 46 6f 72 20 | 20 74 68 69 73 20 20 74 |d. For | this t|
|00001c30| 6f 20 77 6f 72 6b 2c 20 | 61 6c 6c 20 72 65 73 6f |o work, |all reso|
|00001c40| 75 72 63 65 0a 70 6f 69 | 6e 74 65 72 73 20 20 6d |urce.poi|nters m|
|00001c50| 75 73 74 20 20 62 65 20 | 73 65 74 20 74 6f 20 4e |ust be |set to N|
|00001c60| 55 4c 4c 20 62 65 66 6f | 72 65 20 20 69 6e 69 74 |ULL befo|re init|
|00001c70| 69 61 6c 69 7a 61 74 69 | 6f 6e 2c 20 61 6e 64 20 |ializati|on, and |
|00001c80| 73 65 74 20 74 6f 0a 4e | 55 4c 4c 20 69 66 20 74 |set to.N|ULL if t|
|00001c90| 68 65 79 20 61 72 65 20 | 63 6c 6f 73 65 64 20 61 |hey are |closed a|
|00001ca0| 6e 79 77 68 65 72 65 20 | 65 6c 73 65 20 69 6e 20 |nywhere |else in |
|00001cb0| 74 68 65 20 20 70 72 6f | 67 72 61 6d 2e 20 20 0a |the pro|gram. .|
|00001cc0| 0a 0a 0a 0c 0a 0a 0a 0a | 0a 20 20 20 54 68 65 20 |........|. The |
|00001cd0| 6d 61 69 6e 20 20 6c 6f | 6f 70 20 20 77 61 69 74 |main lo|op wait|
|00001ce0| 73 20 20 66 6f 72 20 20 | 61 6e 20 20 49 44 43 4d |s for |an IDCM|
|00001cf0| 50 20 6d 65 73 73 61 67 | 65 20 74 6f 20 61 72 72 |P messag|e to arr|
|00001d00| 69 76 65 20 61 74 20 74 | 68 65 0a 6d 61 69 6e 20 |ive at t|he.main |
|00001d10| 20 77 69 6e 64 6f 77 20 | 6d 65 73 73 61 67 65 20 | window |message |
|00001d20| 70 6f 72 74 2e 20 57 68 | 65 6e 20 6f 6e 65 20 64 |port. Wh|en one d|
|00001d30| 6f 65 73 2c 20 69 74 20 | 75 73 65 73 20 74 68 65 |oes, it |uses the|
|00001d40| 20 43 6c 61 73 73 20 66 | 69 65 6c 64 0a 6f 66 20 | Class f|ield.of |
|00001d50| 20 74 68 65 20 20 6d 65 | 73 73 61 67 65 20 20 74 | the me|ssage t|
|00001d60| 6f 20 64 65 74 65 72 6d | 69 6e 65 20 77 68 61 74 |o determ|ine what|
|00001d70| 20 74 79 70 65 20 6f 66 | 20 6d 65 73 73 61 67 65 | type of| message|
|00001d80| 20 77 61 73 20 72 65 63 | 65 69 76 65 64 2e 0a 49 | was rec|eived..I|
|00001d90| 74 20 20 6f 6e 6c 79 20 | 20 72 65 61 63 74 73 20 |t only | reacts |
|00001da0| 74 6f 20 43 4c 4f 53 45 | 57 49 4e 44 4f 57 2c 20 |to CLOSE|WINDOW, |
|00001db0| 47 41 44 47 45 54 55 50 | 2c 20 61 6e 64 20 4d 45 |GADGETUP|, and ME|
|00001dc0| 4e 55 50 49 43 4b 20 6d | 65 73 73 61 67 65 73 2e |NUPICK m|essages.|
|00001dd0| 0a 54 68 65 72 65 20 20 | 61 72 65 20 20 6c 6f 74 |.There |are lot|
|00001de0| 73 20 20 6f 66 20 20 6f | 74 68 65 72 20 20 74 79 |s of o|ther ty|
|00001df0| 70 65 73 20 20 74 68 61 | 74 20 6d 69 67 68 74 20 |pes tha|t might |
|00001e00| 00 00 00 08 00 00 00 08 | 00 00 00 07 00 00 01 e8 |........|........|
|00001e10| 00 00 00 10 c0 e1 33 99 | 62 65 20 75 73 65 64 2e |......3.|be used.|
|00001e20| 20 49 20 63 61 6e 20 61 | 64 64 0a 63 61 73 65 73 | I can a|dd.cases|
|00001e30| 20 20 66 6f 72 20 20 74 | 68 65 73 65 20 20 68 65 | for t|hese he|
|00001e40| 72 65 20 20 61 6e 64 20 | 20 61 64 64 20 20 74 68 |re and | add th|
|00001e50| 65 20 20 63 6f 72 72 65 | 73 70 6f 6e 64 69 6e 67 |e corre|sponding|
|00001e60| 20 20 62 69 74 20 74 6f | 20 74 68 65 0a 49 44 43 | bit to| the.IDC|
|00001e70| 4d 50 46 6c 61 67 73 20 | 20 6f 66 20 74 68 65 20 |MPFlags | of the |
|00001e80| 4e 65 77 57 69 6e 64 6f | 77 20 73 74 72 75 63 74 |NewWindo|w struct|
|00001e90| 75 72 65 20 62 65 66 6f | 72 65 20 6f 70 65 6e 69 |ure befo|re openi|
|00001ea0| 6e 67 20 74 68 65 20 77 | 69 6e 64 6f 77 2c 0a 6f |ng the w|indow,.o|
|00001eb0| 72 20 20 75 73 65 20 20 | 74 68 65 20 20 4d 6f 64 |r use |the Mod|
|00001ec0| 69 66 79 49 44 43 4d 50 | 28 29 20 20 73 75 62 72 |ifyIDCMP|() subr|
|00001ed0| 6f 75 74 69 6e 65 20 20 | 74 6f 20 63 68 61 6e 67 |outine |to chang|
|00001ee0| 65 20 74 68 65 20 49 44 | 43 4d 50 46 6c 61 67 73 |e the ID|CMPFlags|
|00001ef0| 0a 61 66 74 65 72 20 74 | 68 65 20 77 69 6e 64 6f |.after t|he windo|
|00001f00| 77 20 69 73 20 6f 70 65 | 6e 2e 20 20 0a 20 20 20 |w is ope|n. . |
|00001f10| 54 68 65 20 43 4c 4f 53 | 45 57 49 4e 44 4f 57 20 |The CLOS|EWINDOW |
|00001f20| 20 6d 65 73 73 61 67 65 | 20 20 6a 75 73 74 20 20 | message| just |
|00001f30| 63 61 75 73 65 73 20 20 | 64 6f 6e 65 28 30 29 20 |causes |done(0) |
|00001f40| 20 74 6f 20 62 65 20 63 | 61 6c 6c 65 64 2e 0a 54 | to be c|alled..T|
|00001f50| 68 69 73 20 20 20 6d 65 | 73 73 61 67 65 20 20 69 |his me|ssage i|
|00001f60| 73 20 20 74 68 65 20 20 | 72 65 73 75 6c 74 20 20 |s the |result |
|00001f70| 6f 66 20 20 74 68 65 20 | 20 75 73 65 72 20 63 6c |of the | user cl|
|00001f80| 69 63 6b 69 6e 67 20 74 | 68 65 20 43 6c 6f 73 65 |icking t|he Close|
|00001f90| 0a 47 61 64 67 65 74 2e | 20 20 20 4f 66 20 20 63 |.Gadget.| Of c|
|00001fa0| 6f 75 72 73 65 2c 20 20 | 74 68 65 20 20 57 49 4e |ourse, |the WIN|
|00001fb0| 44 4f 57 43 4c 4f 53 45 | 20 20 62 69 74 20 20 6d |DOWCLOSE| bit m|
|00001fc0| 75 73 74 20 20 62 65 20 | 73 65 74 20 69 6e 20 74 |ust be |set in t|
|00001fd0| 68 65 0a 4e 65 77 57 69 | 6e 64 6f 77 20 46 6c 61 |he.NewWi|ndow Fla|
|00001fe0| 67 73 20 66 69 65 6c 64 | 20 66 6f 72 20 74 68 69 |gs field| for thi|
|00001ff0| 73 20 67 61 64 67 65 74 | 20 74 6f 20 62 65 20 63 |s gadget| to be c|
|00002000| 00 00 00 08 00 00 00 08 | 00 00 00 08 00 00 01 e8 |........|........|
|00002010| 00 00 00 11 95 b8 8e ec | 72 65 61 74 65 64 2e 20 |........|reated. |
|00002020| 20 0a 20 20 20 41 20 47 | 41 44 47 45 54 55 50 20 | . A G|ADGETUP |
|00002030| 20 6d 65 73 73 61 67 65 | 20 20 69 6e 64 69 63 61 | message| indica|
|00002040| 74 65 73 20 20 74 68 61 | 74 20 20 75 73 65 72 20 |tes tha|t user |
|00002050| 68 61 73 20 73 65 6c 65 | 63 74 65 64 20 6f 6e 65 |has sele|cted one|
|00002060| 20 6f 66 0a 74 68 65 20 | 20 67 61 64 67 65 74 73 | of.the | gadgets|
|00002070| 20 20 69 6e 20 20 6d 79 | 20 20 67 61 64 67 65 74 | in my| gadget|
|00002080| 20 6c 69 73 74 2e 20 49 | 20 75 73 65 20 74 68 65 | list. I| use the|
|00002090| 20 52 45 4c 56 45 52 49 | 46 59 20 66 6c 61 67 20 | RELVERI|FY flag |
|000020a0| 69 6e 20 6d 79 0a 62 6f | 6f 6c 65 61 6e 20 20 67 |in my.bo|olean g|
|000020b0| 61 64 67 65 74 73 20 73 | 6f 20 74 68 61 74 20 74 |adgets s|o that t|
|000020c0| 68 65 20 75 73 65 72 20 | 6d 75 73 74 20 63 6c 69 |he user |must cli|
|000020d0| 63 6b 20 61 6e 64 20 72 | 65 6c 65 61 73 65 20 6f |ck and r|elease o|
|000020e0| 76 65 72 20 74 68 65 0a | 67 61 64 67 65 74 20 20 |ver the.|gadget |
|000020f0| 74 6f 20 20 61 63 74 69 | 76 61 74 65 20 20 69 74 |to acti|vate it|
|00002100| 2e 20 20 20 54 68 65 20 | 20 49 41 64 64 72 65 73 |. The | IAddres|
|00002110| 73 20 20 66 69 65 6c 64 | 20 20 6f 66 20 20 74 68 |s field| of th|
|00002120| 65 20 6d 65 73 73 61 67 | 65 0a 63 6f 6e 74 61 69 |e messag|e.contai|
|00002130| 6e 73 20 20 74 68 65 20 | 61 64 64 72 65 73 73 20 |ns the |address |
|00002140| 6f 66 20 74 68 65 20 47 | 61 64 67 65 74 20 73 74 |of the G|adget st|
|00002150| 72 75 63 74 75 72 65 20 | 6f 66 20 20 74 68 65 20 |ructure |of the |
|00002160| 67 61 64 67 65 74 20 74 | 68 61 74 0a 77 61 73 20 |gadget t|hat.was |
|00002170| 20 73 65 6c 65 63 74 65 | 64 2e 20 20 20 49 20 63 | selecte|d. I c|
|00002180| 6f 6d 70 61 72 65 20 74 | 68 69 73 20 74 6f 20 61 |ompare t|his to a|
|00002190| 20 6c 69 73 74 20 6f 66 | 20 6d 79 20 67 61 64 67 | list of| my gadg|
|000021a0| 65 74 20 61 64 64 72 65 | 73 73 65 73 28 0a 61 20 |et addre|sses(.a |
|000021b0| 20 6c 69 73 74 20 20 6f | 66 20 31 20 69 6e 20 73 | list o|f 1 in s|
|000021c0| 6b 65 6c 29 20 74 6f 20 | 73 65 65 20 77 68 69 63 |kel) to |see whic|
|000021d0| 68 20 77 61 73 20 73 65 | 6c 65 63 74 65 64 2e 20 |h was se|lected. |
|000021e0| 54 68 65 20 6f 6e 6c 79 | 20 61 63 74 69 76 65 0a |The only| active.|
|000021f0| 67 61 64 67 65 74 20 20 | 69 6e 20 20 53 6b 65 6c |gadget |in Skel|
|00002200| 00 00 00 08 00 00 00 08 | 00 00 00 09 00 00 01 e8 |........|........|
|00002210| 00 00 00 12 60 0f 2c 84 | 20 20 69 73 20 20 74 68 |....`.,.| is th|
|00002220| 65 20 20 27 47 4f 27 20 | 20 67 61 64 67 65 74 20 |e 'GO' | gadget |
|00002230| 20 77 68 69 63 68 20 63 | 61 75 73 65 73 20 74 68 | which c|auses th|
|00002240| 65 20 64 6f 5f 69 74 28 | 29 0a 72 6f 75 74 69 6e |e do_it(|).routin|
|00002250| 65 20 74 6f 20 62 65 20 | 65 78 65 63 75 74 65 64 |e to be |executed|
|00002260| 2e 20 49 20 63 61 6e 20 | 61 64 64 20 63 68 65 63 |. I can |add chec|
|00002270| 6b 73 20 66 6f 72 20 6d | 6f 72 65 20 67 61 64 67 |ks for m|ore gadg|
|00002280| 65 74 73 20 68 65 72 65 | 2e 20 20 0a 20 20 20 41 |ets here|. . A|
|00002290| 6e 6f 74 68 65 72 20 74 | 79 70 65 20 20 6f 66 20 |nother t|ype of |
|000022a0| 20 62 6f 6f 6c 65 61 6e | 20 20 67 61 64 67 65 74 | boolean| gadget|
|000022b0| 20 20 49 20 63 61 6e 20 | 75 73 65 20 69 73 20 61 | I can |use is a|
|000022c0| 20 54 4f 47 47 4c 45 53 | 45 4c 45 43 54 0a 67 61 | TOGGLES|ELECT.ga|
|000022d0| 64 67 65 74 2e 20 20 20 | 54 68 65 73 65 20 67 61 |dget. |These ga|
|000022e0| 64 67 65 74 73 20 61 72 | 65 20 74 6f 67 67 6c 65 |dgets ar|e toggle|
|000022f0| 64 20 6f 6e 20 61 6e 64 | 20 6f 66 66 20 65 61 63 |d on and| off eac|
|00002300| 68 20 74 69 6d 65 20 74 | 68 65 20 75 73 65 72 0a |h time t|he user.|
|00002310| 63 6c 69 63 6b 73 20 20 | 74 68 65 6d 2e 20 20 54 |clicks |them. T|
|00002320| 68 65 20 20 63 75 72 72 | 65 6e 74 20 73 74 61 74 |he curr|ent stat|
|00002330| 65 20 69 73 20 6b 65 70 | 74 20 62 79 20 69 6e 74 |e is kep|t by int|
|00002340| 75 69 74 69 6f 6e 20 61 | 6e 64 20 63 61 6e 20 62 |uition a|nd can b|
|00002350| 65 0a 72 65 61 64 20 20 | 61 6e 79 20 20 74 69 6d |e.read |any tim|
|00002360| 65 20 62 79 20 74 65 73 | 74 69 6e 67 20 74 68 65 |e by tes|ting the|
|00002370| 20 53 45 4c 45 43 54 45 | 44 20 62 69 74 20 6f 66 | SELECTE|D bit of|
|00002380| 20 74 68 65 20 46 6c 61 | 67 73 20 66 69 65 6c 64 | the Fla|gs field|
|00002390| 20 6f 66 0a 74 68 65 20 | 20 47 61 64 67 65 74 20 | of.the | Gadget |
|000023a0| 20 73 74 72 75 63 74 75 | 72 65 2e 20 20 20 4e 6f | structu|re. No|
|000023b0| 20 20 6d 65 73 73 61 67 | 65 20 20 69 73 20 20 67 | messag|e is g|
|000023c0| 65 6e 65 72 61 74 65 64 | 20 20 77 68 65 6e 20 20 |enerated| when |
|000023d0| 74 68 65 73 65 0a 67 61 | 64 67 65 74 73 20 61 72 |these.ga|dgets ar|
|000023e0| 65 20 63 6c 69 63 6b 65 | 64 2e 20 20 0a 20 20 20 |e clicke|d. . |
|000023f0| 41 20 4d 45 4e 55 50 49 | 43 4b 20 20 6d 65 73 73 |A MENUPI|CK mess|
|00002400| 00 00 00 08 00 00 00 08 | 00 00 00 0a 00 00 01 e8 |........|........|
|00002410| 00 00 00 13 29 b2 f8 7c | 61 67 65 20 20 61 72 72 |....)..||age arr|
|00002420| 69 76 65 73 20 20 65 61 | 63 68 20 74 69 6d 65 20 |ives ea|ch time |
|00002430| 74 68 65 20 75 73 65 72 | 20 62 72 69 6e 67 73 20 |the user| brings |
|00002440| 75 70 20 74 68 65 0a 6d | 65 6e 75 73 20 20 66 6f |up the.m|enus fo|
|00002450| 72 20 20 6d 79 20 20 77 | 69 6e 64 6f 77 2e 20 20 |r my w|indow. |
|00002460| 54 68 65 20 6d 65 73 73 | 61 67 65 20 43 6f 64 65 |The mess|age Code|
|00002470| 20 66 69 65 6c 64 20 63 | 6f 6e 74 61 69 6e 73 20 | field c|ontains |
|00002480| 61 20 6e 75 6d 62 65 72 | 0a 69 6e 64 69 63 61 74 |a number|.indicat|
|00002490| 69 6e 67 20 20 77 68 69 | 63 68 20 20 6d 65 6e 75 |ing whi|ch menu|
|000024a0| 20 77 61 73 20 70 69 63 | 6b 65 64 2e 20 54 68 65 | was pic|ked. The|
|000024b0| 20 70 72 6f 63 65 73 73 | 69 6e 67 20 6f 66 20 61 | process|ing of a|
|000024c0| 20 6d 65 6e 75 20 70 69 | 63 6b 0a 69 73 20 68 61 | menu pi|ck.is ha|
|000024d0| 6e 64 6c 65 64 20 69 6e | 20 74 68 65 20 64 6f 5f |ndled in| the do_|
|000024e0| 70 69 63 6b 28 29 20 73 | 75 62 72 6f 75 74 69 6e |pick() s|ubroutin|
|000024f0| 65 2e 20 20 0a 20 20 20 | 54 68 65 20 64 6f 5f 70 |e. . |The do_p|
|00002500| 69 63 6b 28 29 20 20 20 | 73 75 62 72 6f 75 74 69 |ick() |subrouti|
|00002510| 6e 65 20 20 64 65 74 65 | 72 6d 69 6e 65 73 20 20 |ne dete|rmines |
|00002520| 77 68 69 63 68 20 20 6d | 65 6e 75 20 20 68 61 73 |which m|enu has|
|00002530| 20 20 62 65 65 6e 0a 73 | 65 6c 65 63 74 65 64 2e | been.s|elected.|
|00002540| 20 20 20 49 74 20 75 73 | 65 73 20 74 68 65 20 73 | It us|es the s|
|00002550| 74 61 6e 64 61 72 64 20 | 6d 61 63 72 6f 73 20 74 |tandard |macros t|
|00002560| 6f 20 62 72 65 61 6b 20 | 74 68 65 20 6d 65 73 73 |o break |the mess|
|00002570| 61 67 65 20 63 6f 64 65 | 0a 69 6e 74 6f 20 20 74 |age code|.into t|
|00002580| 68 65 20 20 6d 65 6e 75 | 20 20 6e 75 6d 62 65 72 |he menu| number|
|00002590| 2c 20 20 69 74 65 6d 20 | 20 6e 75 6d 62 65 72 2c |, item | number,|
|000025a0| 20 20 61 6e 64 20 20 73 | 75 62 69 74 65 6d 20 6e | and s|ubitem n|
|000025b0| 75 6d 62 65 72 2e 20 54 | 68 65 0a 70 72 6f 70 65 |umber. T|he.prope|
|000025c0| 72 20 20 72 6f 75 74 69 | 6e 65 20 20 69 73 20 20 |r routi|ne is |
|000025d0| 73 65 6c 65 63 74 65 64 | 20 20 77 69 74 68 20 20 |selected| with |
|000025e0| 61 20 20 73 65 72 69 65 | 73 20 20 6f 66 20 20 6e |a serie|s of n|
|000025f0| 65 73 74 65 64 20 73 77 | 69 74 63 68 0a 73 74 61 |ested sw|itch.sta|
|00002600| 00 00 00 08 00 00 00 08 | 00 00 00 0b 00 00 01 e8 |........|........|
|00002610| 00 00 00 14 f2 9e 6b 2f | 74 65 6d 65 6e 74 73 2e |......k/|tements.|
|00002620| 20 20 4d 65 6e 75 73 20 | 20 61 6e 64 20 20 69 74 | Menus | and it|
|00002630| 65 6d 73 20 61 72 65 20 | 6e 75 6d 62 65 72 65 64 |ems are |numbered|
|00002640| 20 66 72 6f 6d 20 7a 65 | 72 6f 20 73 74 61 72 74 | from ze|ro start|
|00002650| 69 6e 67 20 69 6e 0a 74 | 68 65 20 20 75 70 70 65 |ing in.t|he uppe|
|00002660| 72 20 20 6c 65 66 74 2e | 20 20 54 68 65 20 20 50 |r left.| The P|
|00002670| 72 6f 6a 65 63 74 20 20 | 6d 65 6e 75 20 20 68 61 |roject |menu ha|
|00002680| 73 20 34 20 69 74 65 6d | 73 2c 20 65 61 63 68 20 |s 4 item|s, each |
|00002690| 6f 66 20 77 68 69 63 68 | 0a 63 61 75 73 65 20 20 |of which|.cause |
|000026a0| 74 68 65 20 20 65 78 65 | 63 75 74 69 6f 6e 20 6f |the exe|cution o|
|000026b0| 66 20 61 20 72 6f 75 74 | 69 6e 65 2e 20 54 68 65 |f a rout|ine. The|
|000026c0| 20 4f 70 74 69 6f 6e 73 | 20 6d 65 6e 75 20 68 61 | Options| menu ha|
|000026d0| 73 20 6f 6e 6c 79 20 6f | 6e 65 0a 69 74 65 6d 20 |s only o|ne.item |
|000026e0| 20 74 68 61 74 20 20 69 | 73 20 20 61 6e 20 65 78 | that i|s an ex|
|000026f0| 61 6d 70 6c 65 20 6f 66 | 20 75 73 69 6e 67 20 4d |ample of| using M|
|00002700| 55 54 55 41 4c 45 58 43 | 4c 55 44 45 20 73 75 62 |UTUALEXC|LUDE sub|
|00002710| 69 74 65 6d 73 2e 20 49 | 20 63 61 6e 0a 69 67 6e |items. I| can.ign|
|00002720| 6f 72 65 20 20 74 68 65 | 20 20 6d 65 73 73 61 67 |ore the| messag|
|00002730| 65 73 20 20 66 6f 72 20 | 20 74 68 65 73 65 20 69 |es for | these i|
|00002740| 74 65 6d 73 20 62 65 63 | 61 75 73 65 20 49 6e 74 |tems bec|ause Int|
|00002750| 75 69 74 69 6f 6e 20 74 | 6f 74 61 6c 6c 79 0a 68 |uition t|otally.h|
|00002760| 61 6e 64 6c 65 73 20 20 | 74 75 72 6e 69 6e 67 20 |andles |turning |
|00002770| 20 6f 6e 20 20 61 6e 64 | 20 6f 66 66 20 74 68 65 | on and| off the|
|00002780| 20 63 68 65 63 6b 20 6d | 61 72 6b 73 20 61 73 20 | check m|arks as |
|00002790| 74 68 65 20 75 73 65 72 | 20 73 65 6c 65 63 74 73 |the user| selects|
|000027a0| 0a 6f 70 74 69 6f 6e 73 | 2e 20 20 41 6c 6c 20 49 |.options|. All I|
|000027b0| 20 68 61 76 65 20 74 6f | 20 64 6f 20 69 73 20 74 | have to| do is t|
|000027c0| 65 73 74 20 74 68 65 20 | 43 48 45 43 4b 45 44 20 |est the |CHECKED |
|000027d0| 62 69 74 20 69 6e 20 74 | 68 65 20 53 75 62 49 74 |bit in t|he SubIt|
|000027e0| 65 6d 0a 46 6c 61 67 73 | 20 20 66 69 65 6c 64 20 |em.Flags| field |
|000027f0| 20 74 6f 20 20 73 65 65 | 20 20 77 68 69 63 68 20 | to see| which |
|00002800| 00 00 00 08 00 00 00 08 | 00 00 00 0c 00 00 01 e8 |........|........|
|00002810| 00 00 00 15 63 40 4c b3 | 20 69 74 65 6d 20 20 69 |....c@L.| item i|
|00002820| 73 20 73 65 6c 65 63 74 | 65 64 2e 20 20 54 68 65 |s select|ed. The|
|00002830| 20 6f 6e 6c 79 20 74 69 | 6d 65 20 49 0a 6d 69 67 | only ti|me I.mig|
|00002840| 68 74 20 20 77 61 6e 74 | 20 20 74 6f 20 20 64 6f |ht want| to do|
|00002850| 20 73 6f 6d 65 74 68 69 | 6e 67 20 69 6e 20 72 65 | somethi|ng in re|
|00002860| 73 70 6f 6e 73 65 20 74 | 6f 20 61 20 6d 65 73 73 |sponse t|o a mess|
|00002870| 61 67 65 20 66 6f 72 20 | 6f 6e 65 20 6f 66 0a 74 |age for |one of.t|
|00002880| 68 65 73 65 20 20 20 69 | 74 65 6d 73 20 20 20 69 |hese i|tems i|
|00002890| 73 20 20 20 69 66 20 20 | 20 74 68 65 20 20 6f 70 |s if | the op|
|000028a0| 74 69 6f 6e 20 20 62 65 | 69 6e 67 20 20 73 65 6c |tion be|ing sel|
|000028b0| 65 63 74 65 64 20 20 6e | 65 65 64 73 20 20 61 6e |ected n|eeds an|
|000028c0| 0a 69 6e 69 74 69 61 6c | 69 7a 61 74 69 6f 6e 20 |.initial|ization |
|000028d0| 20 20 72 6f 75 74 69 6e | 65 20 20 20 74 6f 20 20 | routin|e to |
|000028e0| 20 62 65 20 20 72 75 6e | 2e 20 20 20 41 66 74 65 | be run|. Afte|
|000028f0| 72 20 20 70 72 6f 63 65 | 73 73 69 6e 67 20 20 74 |r proce|ssing t|
|00002900| 68 65 0a 73 65 6c 65 63 | 74 69 6f 6e 2c 20 20 49 |he.selec|tion, I|
|00002910| 20 20 75 73 65 20 74 68 | 65 20 49 74 65 6d 41 64 | use th|e ItemAd|
|00002920| 64 72 65 73 73 28 29 20 | 73 75 62 72 6f 75 74 69 |dress() |subrouti|
|00002930| 6e 65 20 74 6f 20 67 65 | 74 20 74 68 65 20 61 63 |ne to ge|t the ac|
|00002940| 74 75 61 6c 0a 61 64 64 | 72 65 73 73 20 20 6f 66 |tual.add|ress of|
|00002950| 20 20 74 68 65 20 6d 65 | 6e 75 69 74 65 6d 20 73 | the me|nuitem s|
|00002960| 74 72 75 63 74 75 72 65 | 20 61 6e 64 20 67 65 74 |tructure| and get|
|00002970| 20 69 74 73 20 4e 65 78 | 74 53 65 6c 65 63 74 20 | its Nex|tSelect |
|00002980| 66 69 65 6c 64 2e 0a 54 | 68 69 73 20 20 69 73 20 |field..T|his is |
|00002990| 20 65 69 74 68 65 72 20 | 74 68 65 20 6e 75 6d 62 | either |the numb|
|000029a0| 65 72 20 6f 66 20 61 6e | 6f 74 68 65 72 20 73 65 |er of an|other se|
|000029b0| 6c 65 63 74 69 6f 6e 20 | 74 6f 20 62 65 20 70 72 |lection |to be pr|
|000029c0| 6f 63 65 73 73 65 64 2c | 0a 6f 72 20 20 4d 45 4e |ocessed,|.or MEN|
|000029d0| 55 4e 55 4c 4c 2e 20 20 | 53 65 6c 65 63 74 69 6f |UNULL. |Selectio|
|000029e0| 6e 20 20 70 72 6f 63 65 | 73 73 69 6e 67 20 72 65 |n proce|ssing re|
|000029f0| 70 65 61 74 73 20 75 6e | 74 69 6c 20 61 6c 6c 20 |peats un|til all |
|00002a00| 00 00 00 08 00 00 00 08 | 00 00 00 0d 00 00 01 e8 |........|........|
|00002a10| 00 00 00 16 4a 74 78 69 | 73 65 6c 65 63 74 69 6f |....Jtxi|selectio|
|00002a20| 6e 73 0a 69 6e 20 74 68 | 65 20 63 68 61 69 6e 20 |ns.in th|e chain |
|00002a30| 68 61 76 65 20 62 65 65 | 6e 20 70 72 6f 63 65 73 |have bee|n proces|
|00002a40| 73 65 64 2e 20 20 0a 0a | 0a 0a 0c 0a 0a 0a 0a 0a |sed. ..|........|
|00002a50| 20 20 20 54 68 65 20 64 | 6f 5f 69 74 28 29 20 20 | The d|o_it() |
|00002a60| 73 75 62 72 6f 75 74 69 | 6e 65 20 20 69 73 20 20 |subrouti|ne is |
|00002a70| 74 68 65 20 6d 61 69 6e | 20 61 63 74 69 6f 6e 20 |the main| action |
|00002a80| 72 6f 75 74 69 6e 65 20 | 61 6e 64 20 69 74 20 69 |routine |and it i|
|00002a90| 73 0a 61 63 74 69 76 61 | 74 65 64 20 20 62 79 20 |s.activa|ted by |
|00002aa0| 74 68 65 20 47 4f 20 67 | 61 64 67 65 74 2e 20 49 |the GO g|adget. I|
|00002ab0| 74 20 66 69 72 73 74 20 | 63 68 65 63 6b 73 20 74 |t first |checks t|
|00002ac0| 68 65 20 6f 70 74 69 6f | 6e 73 20 61 6e 64 20 74 |he optio|ns and t|
|00002ad0| 68 65 6e 0a 63 61 6c 6c | 73 20 20 6f 66 66 5f 67 |hen.call|s off_g|
|00002ae0| 61 64 73 28 29 2e 20 20 | 6f 66 66 5f 67 61 64 73 |ads(). |off_gads|
|00002af0| 28 29 20 20 64 69 73 61 | 62 6c 65 73 20 20 61 6c |() disa|bles al|
|00002b00| 6c 20 20 67 61 64 67 65 | 74 73 20 65 78 63 65 70 |l gadge|ts excep|
|00002b10| 74 20 74 68 65 0a 53 54 | 4f 50 20 20 67 61 64 67 |t the.ST|OP gadg|
|00002b20| 65 74 2e 20 20 49 6e 20 | 20 6f 72 64 65 72 20 20 |et. In | order |
|00002b30| 74 6f 20 20 64 6f 20 20 | 74 68 69 73 20 20 70 72 |to do |this pr|
|00002b40| 6f 70 65 72 6c 79 20 49 | 20 6d 75 73 74 20 66 69 |operly I| must fi|
|00002b50| 72 73 74 20 75 73 65 0a | 52 65 6d 6f 76 65 47 4c |rst use.|RemoveGL|
|00002b60| 69 73 74 28 29 20 20 74 | 6f 20 20 72 65 6d 6f 76 |ist() t|o remov|
|00002b70| 65 20 61 6c 6c 20 74 68 | 65 20 67 61 64 67 65 74 |e all th|e gadget|
|00002b80| 73 20 66 72 6f 6d 20 74 | 68 65 20 77 69 6e 64 6f |s from t|he windo|
|00002b90| 77 2e 20 54 68 65 6e 20 | 49 0a 63 61 6e 20 20 6d |w. Then |I.can m|
|00002ba0| 61 6b 65 20 20 61 6e 79 | 20 20 63 68 61 6e 67 65 |ake any| change|
|00002bb0| 73 20 20 74 6f 20 20 74 | 68 65 20 67 61 64 67 65 |s to t|he gadge|
|00002bc0| 74 73 2e 20 49 20 68 61 | 76 65 20 6d 61 64 65 20 |ts. I ha|ve made |
|00002bd0| 61 20 63 6f 75 70 6c 65 | 20 6f 66 0a 6d 61 63 72 |a couple| of.macr|
|00002be0| 6f 73 20 20 28 4f 66 66 | 47 61 64 20 20 26 20 4f |os (Off|Gad & O|
|00002bf0| 6e 47 61 64 29 20 74 6f | 20 73 65 74 20 61 6e 64 |nGad) to| set and|
|00002c00| 00 00 00 08 00 00 00 08 | 00 00 00 0e 00 00 01 e8 |........|........|
|00002c10| 00 00 00 17 1d e9 f9 c1 | 20 63 6c 65 61 72 20 74 |........| clear t|
|00002c20| 68 65 20 47 41 44 44 49 | 53 41 42 4c 45 44 20 62 |he GADDI|SABLED b|
|00002c30| 69 74 20 69 6e 0a 74 68 | 65 20 20 47 61 64 67 65 |it in.th|e Gadge|
|00002c40| 74 20 73 74 72 75 63 74 | 75 72 65 2e 20 54 68 65 |t struct|ure. The|
|00002c50| 72 65 20 61 72 65 20 49 | 6e 74 75 69 74 69 6f 6e |re are I|ntuition|
|00002c60| 20 73 75 62 72 6f 75 74 | 69 6e 65 73 20 74 6f 20 | subrout|ines to |
|00002c70| 64 6f 20 74 68 69 73 0a | 28 4f 66 66 47 61 64 67 |do this.|(OffGadg|
|00002c80| 65 74 28 29 20 20 61 6e | 64 20 20 4f 6e 47 61 64 |et() an|d OnGad|
|00002c90| 67 65 74 28 29 29 2c 20 | 20 62 75 74 20 20 74 68 |get()), | but th|
|00002ca0| 65 73 65 20 72 6f 75 74 | 69 6e 65 73 20 61 6c 73 |ese rout|ines als|
|00002cb0| 6f 20 72 65 66 72 65 73 | 68 0a 74 68 65 20 20 69 |o refres|h.the i|
|00002cc0| 6d 61 67 65 20 6f 66 20 | 65 61 63 68 20 67 61 64 |mage of |each gad|
|00002cd0| 67 65 74 2e 20 49 74 20 | 69 73 20 6d 6f 72 65 20 |get. It |is more |
|00002ce0| 65 66 66 69 63 69 65 6e | 74 20 61 6e 64 20 6d 6f |efficien|t and mo|
|00002cf0| 72 65 20 76 69 73 75 61 | 6c 6c 79 0a 70 6c 65 61 |re visua|lly.plea|
|00002d00| 73 69 6e 67 2c 20 20 77 | 68 65 6e 20 20 63 68 61 |sing, w|hen cha|
|00002d10| 6e 67 69 6e 67 20 20 73 | 65 76 65 72 61 6c 20 20 |nging s|everal |
|00002d20| 67 61 64 67 65 74 73 2c | 20 20 74 6f 20 20 74 6f |gadgets,| to to|
|00002d30| 20 6d 61 6b 65 20 61 6c | 6c 20 74 68 65 0a 63 68 | make al|l the.ch|
|00002d40| 61 6e 67 65 73 20 20 61 | 6e 64 20 20 72 65 66 72 |anges a|nd refr|
|00002d50| 65 73 68 20 20 61 6c 6c | 20 20 74 68 65 20 20 67 |esh all| the g|
|00002d60| 61 64 67 65 74 73 20 61 | 74 20 74 68 65 20 73 61 |adgets a|t the sa|
|00002d70| 6d 65 20 74 69 6d 65 2e | 20 20 49 20 75 73 65 0a |me time.| I use.|
|00002d80| 41 64 64 47 4c 69 73 74 | 20 20 74 6f 20 70 75 74 |AddGList| to put|
|00002d90| 20 74 68 65 6d 20 62 61 | 63 6b 20 69 6e 20 74 68 | them ba|ck in th|
|00002da0| 65 20 77 69 6e 64 6f 77 | 2c 20 61 6e 64 20 74 68 |e window|, and th|
|00002db0| 65 6e 20 52 65 66 72 65 | 73 68 47 6c 69 73 74 28 |en Refre|shGlist(|
|00002dc0| 29 0a 74 6f 20 20 72 65 | 66 72 65 73 68 20 20 74 |).to re|fresh t|
|00002dd0| 68 65 20 20 69 6d 61 67 | 65 20 20 6f 66 20 20 61 |he imag|e of a|
|00002de0| 6c 6c 20 20 67 61 64 67 | 65 74 73 2e 20 20 53 6f |ll gadg|ets. So|
|00002df0| 6d 65 20 20 67 61 64 67 | 65 74 73 20 61 72 65 20 |me gadg|ets are |
|00002e00| 00 00 00 08 00 00 00 08 | 00 00 00 0f 00 00 01 e8 |........|........|
|00002e10| 00 00 00 18 3d 9b ea ca | 6e 6f 74 0a 72 65 64 72 |....=...|not.redr|
|00002e20| 61 77 6e 20 20 70 72 6f | 70 65 72 6c 79 20 75 6e |awn pro|perly un|
|00002e30| 6c 65 73 73 20 74 68 65 | 79 20 61 72 65 20 64 72 |less the|y are dr|
|00002e40| 61 77 6e 20 6f 6e 20 62 | 61 63 6b 67 72 6f 75 6e |awn on b|ackgroun|
|00002e50| 64 20 63 6f 6c 6f 72 2c | 20 73 6f 20 49 0a 75 73 |d color,| so I.us|
|00002e60| 65 20 20 52 65 63 74 46 | 69 6c 6c 28 29 20 20 74 |e RectF|ill() t|
|00002e70| 6f 20 20 63 6c 65 61 72 | 20 20 74 68 65 20 20 77 |o clear| the w|
|00002e80| 69 6e 64 6f 77 20 20 66 | 69 72 73 74 2e 20 20 4e |indow f|irst. N|
|00002e90| 6f 74 69 63 65 20 20 74 | 68 61 74 20 74 68 72 0a |otice t|hat thr.|
|00002ea0| 72 65 64 72 61 77 5f 73 | 63 72 28 29 20 20 73 75 |redraw_s|cr() su|
|00002eb0| 62 72 6f 75 74 69 6e 65 | 20 20 69 73 20 20 61 63 |broutine| is ac|
|00002ec0| 74 75 61 6c 6c 79 20 20 | 70 61 72 74 20 20 6f 66 |tually |part of|
|00002ed0| 20 20 6f 6e 5f 67 61 64 | 64 73 28 29 20 20 61 6e | on_gad|ds() an|
|00002ee0| 64 0a 6f 66 66 5f 67 61 | 64 73 28 29 20 20 61 6e |d.off_ga|ds() an|
|00002ef0| 64 20 20 73 68 6f 75 6c | 64 20 20 6e 6f 74 20 62 |d shoul|d not b|
|00002f00| 65 20 63 61 6c 6c 65 64 | 20 65 6c 73 65 77 68 65 |e called| elsewhe|
|00002f10| 72 65 2e 20 4f 66 66 5f | 67 61 64 73 28 29 20 61 |re. Off_|gads() a|
|00002f20| 6c 73 6f 0a 72 65 6d 6f | 76 65 73 20 20 74 68 65 |lso.remo|ves the|
|00002f30| 20 6d 65 6e 75 73 20 66 | 72 6f 6d 20 74 68 65 20 | menus f|rom the |
|00002f40| 77 69 6e 64 6f 77 20 73 | 6f 20 74 68 61 74 20 74 |window s|o that t|
|00002f50| 68 65 20 75 73 65 72 20 | 63 61 6e 6e 6f 74 20 73 |he user |cannot s|
|00002f60| 65 6c 65 63 74 0a 74 68 | 65 6d 20 77 68 69 6c 65 |elect.th|em while|
|00002f70| 20 64 6f 5f 69 74 28 29 | 20 69 73 20 72 75 6e 6e | do_it()| is runn|
|00002f80| 69 6e 67 2e 20 20 0a 20 | 20 41 66 74 65 72 20 61 |ing. . | After a|
|00002f90| 64 6a 75 73 74 69 6e 67 | 20 20 74 68 65 20 67 61 |djusting| the ga|
|00002fa0| 64 67 65 74 73 20 64 6f | 5f 69 74 28 29 20 65 6e |dgets do|_it() en|
|00002fb0| 74 65 72 73 20 61 20 6c | 6f 6f 70 20 6f 66 20 64 |ters a l|oop of d|
|00002fc0| 72 61 77 69 6e 67 20 61 | 0a 67 72 61 70 68 69 63 |rawing a|.graphic|
|00002fd0| 20 20 61 6e 64 20 20 63 | 68 65 63 6b 69 6e 67 20 | and c|hecking |
|00002fe0| 20 66 6f 72 20 20 61 20 | 6d 65 73 73 61 67 65 20 | for a |message |
|00002ff0| 61 74 20 74 68 65 20 77 | 69 6e 64 6f 77 20 70 6f |at the w|indow po|
|00003000| 00 00 00 08 00 00 00 08 | 00 00 00 10 00 00 01 e8 |........|........|
|00003010| 00 00 00 19 ac 44 41 21 | 72 74 2e 20 4e 6f 74 69 |.....DA!|rt. Noti|
|00003020| 63 65 0a 74 68 61 74 20 | 20 49 20 20 63 61 6e 6e |ce.that | I cann|
|00003030| 6f 74 20 20 77 61 69 74 | 20 6f 6e 20 74 68 65 20 |ot wait| on the |
|00003040| 70 6f 72 74 20 74 68 69 | 73 20 74 69 6d 65 20 62 |port thi|s time b|
|00003050| 65 63 61 75 73 65 20 49 | 20 68 61 76 65 20 74 68 |ecause I| have th|
|00003060| 69 6e 67 73 0a 74 6f 20 | 20 64 6f 2e 20 53 6f 20 |ings.to | do. So |
|00003070| 49 20 68 61 76 65 20 74 | 6f 20 63 61 6c 6c 20 47 |I have t|o call G|
|00003080| 65 74 4d 73 67 28 29 20 | 75 6e 74 69 6c 20 49 20 |etMsg() |until I |
|00003090| 67 65 74 20 61 20 6e 6f | 6e 2d 4e 55 4c 4c 20 70 |get a no|n-NULL p|
|000030a0| 6f 69 6e 74 65 72 0a 62 | 61 63 6b 2e 20 20 20 49 |ointer.b|ack. I|
|000030b0| 20 20 6f 6e 6c 79 20 20 | 72 65 63 6f 67 6e 69 7a | only |recogniz|
|000030c0| 65 20 20 74 68 65 20 20 | 43 4c 4f 53 45 57 49 4e |e the |CLOSEWIN|
|000030d0| 44 4f 57 20 20 61 6e 64 | 20 20 53 74 6f 70 20 20 |DOW and| Stop |
|000030e0| 67 61 64 67 65 74 73 2e | 0a 43 4c 4f 53 45 57 49 |gadgets.|.CLOSEWI|
|000030f0| 4e 44 4f 57 20 20 65 78 | 65 63 75 74 65 73 20 20 |NDOW ex|ecutes |
|00003100| 64 6f 6e 65 28 29 2e 20 | 4f 6e 20 53 74 6f 70 20 |done(). |On Stop |
|00003110| 49 20 65 78 69 74 20 74 | 68 65 20 6c 6f 6f 70 20 |I exit t|he loop |
|00003120| 61 6e 64 20 66 69 6e 69 | 73 68 0a 64 6f 5f 69 74 |and fini|sh.do_it|
|00003130| 28 29 20 20 77 69 74 68 | 20 20 74 68 65 20 20 20 |() with| the |
|00003140| 6f 66 66 5f 67 61 64 73 | 28 29 20 20 73 75 62 72 |off_gads|() subr|
|00003150| 6f 75 74 69 6e 65 2e 20 | 49 74 20 73 77 61 70 73 |outine. |It swaps|
|00003160| 20 74 68 65 20 67 61 64 | 67 65 74 73 0a 62 61 63 | the gad|gets.bac|
|00003170| 6b 20 61 6e 64 20 61 74 | 74 61 63 68 65 73 20 74 |k and at|taches t|
|00003180| 68 65 20 6d 65 6e 75 2e | 20 20 0a 20 20 54 68 65 |he menu.| . The|
|00003190| 20 4f 70 65 6e 20 20 6d | 65 6e 75 20 20 69 74 65 | Open m|enu ite|
|000031a0| 6d 20 20 65 78 65 63 75 | 74 65 73 20 20 74 68 65 |m execu|tes the|
|000031b0| 20 64 6f 5f 6f 70 65 6e | 20 73 75 62 72 6f 75 74 | do_open| subrout|
|000031c0| 69 6e 65 2e 20 54 68 69 | 73 20 69 73 0a 77 68 65 |ine. Thi|s is.whe|
|000031d0| 72 65 20 20 49 20 6e 6f | 72 6d 61 6c 6c 79 20 77 |re I no|rmally w|
|000031e0| 6f 75 6c 64 20 68 61 76 | 65 20 6d 79 20 69 6e 74 |ould hav|e my int|
|000031f0| 65 72 66 61 63 65 20 74 | 6f 20 61 20 46 69 6c 65 |erface t|o a File|
|00003200| 00 00 00 08 00 00 00 08 | 00 00 00 11 00 00 01 e8 |........|........|
|00003210| 00 00 00 1a 07 a3 c4 9e | 20 52 65 71 75 65 73 74 |........| Request|
|00003220| 65 72 20 61 6e 64 0a 74 | 68 65 20 20 6f 70 65 6e |er and.t|he open|
|00003230| 20 20 6f 66 20 74 68 65 | 20 72 65 74 75 72 6e 65 | of the| returne|
|00003240| 64 20 66 69 6c 65 6e 61 | 6d 65 2e 20 49 6e 73 74 |d filena|me. Inst|
|00003250| 65 61 64 20 53 6b 65 6c | 20 68 61 73 20 6a 75 73 |ead Skel| has jus|
|00003260| 74 20 61 20 74 65 73 74 | 0a 6f 66 20 6d 79 20 73 |t a test|.of my s|
|00003270| 74 61 6e 64 61 72 64 20 | 27 4f 70 65 6e 20 46 61 |tandard |'Open Fa|
|00003280| 69 6c 27 20 65 72 72 6f | 72 20 52 65 71 75 65 73 |il' erro|r Reques|
|00003290| 74 65 72 2e 20 20 0a 20 | 20 49 20 68 61 76 65 20 |ter. . | I have |
|000032a0| 20 69 6e 63 6c 75 64 65 | 64 20 61 6e 20 5f 61 62 | include|d an _ab|
|000032b0| 6f 72 74 28 29 20 72 6f | 75 74 69 6e 65 2e 20 54 |ort() ro|utine. T|
|000032c0| 68 69 73 20 72 6f 75 74 | 69 6e 65 20 69 73 20 63 |his rout|ine is c|
|000032d0| 61 6c 6c 65 64 20 62 79 | 0a 74 68 65 20 20 41 7a |alled by|.the Az|
|000032e0| 74 65 63 20 20 43 68 6b | 5f 41 62 6f 72 74 20 20 |tec Chk|_Abort |
|000032f0| 72 6f 75 74 69 6e 65 2e | 20 20 43 68 6b 5f 41 62 |routine.| Chk_Ab|
|00003300| 6f 72 74 20 69 73 20 63 | 61 6c 6c 65 64 20 62 79 |ort is c|alled by|
|00003310| 20 74 68 65 20 41 7a 74 | 65 63 0a 49 2f 4f 20 20 | the Azt|ec.I/O |
|00003320| 72 6f 75 74 69 6e 65 73 | 20 20 74 6f 20 20 63 68 |routines| to ch|
|00003330| 65 63 6b 20 66 6f 72 20 | 74 68 65 20 63 61 6e 63 |eck for |the canc|
|00003340| 65 6c 20 73 69 67 6e 61 | 6c 2e 20 49 74 20 63 61 |el signa|l. It ca|
|00003350| 6c 6c 73 20 61 62 6f 72 | 74 20 74 6f 0a 63 6c 65 |lls abor|t to.cle|
|00003360| 61 6e 20 20 75 70 20 20 | 61 6e 64 20 20 65 78 69 |an up |and exi|
|00003370| 74 20 77 68 65 6e 20 69 | 74 20 64 65 74 65 63 74 |t when i|t detect|
|00003380| 73 20 63 61 6e 63 65 6c | 2e 20 20 49 66 20 74 68 |s cancel|. If th|
|00003390| 65 20 70 72 6f 67 72 61 | 6d 20 75 73 65 73 0a 6e |e progra|m uses.n|
|000033a0| 6f 6e 65 20 20 6f 66 20 | 20 74 68 65 20 20 41 7a |one of | the Az|
|000033b0| 74 65 63 20 20 49 2f 4f | 20 20 72 6f 75 74 69 6e |tec I/O| routin|
|000033c0| 65 73 20 20 61 6e 64 20 | 20 64 6f 65 73 6e 27 74 |es and | doesn't|
|000033d0| 20 63 61 6c 6c 20 43 68 | 6b 5f 41 62 6f 72 74 2c | call Ch|k_Abort,|
|000033e0| 0a 5f 61 62 6f 72 74 28 | 29 20 20 69 73 20 20 6e |._abort(|) is n|
|000033f0| 6f 74 20 6e 65 65 64 65 | 64 2e 20 54 68 65 20 6f |ot neede|d. The o|
|00003400| 00 00 00 08 00 00 00 08 | 00 00 00 12 00 00 01 e8 |........|........|
|00003410| 00 00 00 1b b9 89 e4 e0 | 6e 6c 79 20 6f 74 68 65 |........|nly othe|
|00003420| 72 20 75 73 65 20 66 6f | 72 20 5f 61 62 6f 72 74 |r use fo|r _abort|
|00003430| 28 29 20 69 73 20 77 69 | 74 68 0a 4d 61 6e 78 27 |() is wi|th.Manx'|
|00003440| 73 20 20 73 6f 75 72 63 | 65 20 20 6c 65 76 65 6c |s sourc|e level|
|00003450| 20 20 64 65 62 75 67 67 | 65 72 20 28 53 44 42 29 | debugg|er (SDB)|
|00003460| 2e 20 20 53 44 42 20 63 | 61 6c 6c 73 20 5f 61 62 |. SDB c|alls _ab|
|00003470| 6f 72 74 28 29 20 77 68 | 65 6e 20 49 0a 75 73 65 |ort() wh|en I.use|
|00003480| 20 20 74 68 65 20 71 20 | 63 6f 6d 6d 61 6e 64 20 | the q |command |
|00003490| 74 6f 20 65 78 69 74 20 | 74 68 65 20 70 72 6f 67 |to exit |the prog|
|000034a0| 72 61 6d 20 65 61 72 6c | 79 2e 20 20 49 66 20 49 |ram earl|y. If I|
|000034b0| 20 70 75 74 20 61 20 63 | 61 6c 6c 20 74 6f 0a 64 | put a c|all to.d|
|000034c0| 6f 6e 65 28 29 20 69 6e | 20 5f 61 62 6f 72 74 28 |one() in| _abort(|
|000034d0| 29 20 74 68 65 20 71 20 | 63 6f 6d 6d 61 6e 64 20 |) the q |command |
|000034e0| 77 69 6c 6c 20 72 65 6c | 65 61 73 65 20 61 6c 6c |will rel|ease all|
|000034f0| 20 6d 79 20 72 65 73 6f | 75 72 63 65 73 2e 20 20 | my reso|urces. |
|00003500| 0a 20 20 54 68 65 20 64 | 6f 61 72 67 73 2e 63 20 |. The d|oargs.c |
|00003510| 20 66 69 6c 65 20 20 63 | 6f 6e 74 61 69 6e 73 20 | file c|ontains |
|00003520| 20 61 20 20 73 75 62 72 | 6f 75 74 69 6e 65 20 20 | a subr|outine |
|00003530| 74 6f 20 20 67 65 74 20 | 20 77 6f 72 6b 62 65 6e |to get | workben|
|00003540| 63 68 0a 61 72 67 75 6d | 65 6e 74 73 20 20 61 6e |ch.argum|ents an|
|00003550| 64 20 20 61 20 20 73 75 | 62 72 6f 75 74 69 6e 65 |d a su|broutine|
|00003560| 20 20 74 6f 20 20 67 65 | 74 20 43 4c 49 20 61 72 | to ge|t CLI ar|
|00003570| 67 75 6d 65 6e 74 73 2e | 20 67 65 74 57 42 61 72 |guments.| getWBar|
|00003580| 67 73 28 29 0a 66 69 6e | 64 73 20 20 74 68 65 20 |gs().fin|ds the |
|00003590| 57 6f 72 6b 62 65 6e 63 | 68 20 73 74 61 72 74 75 |Workbenc|h startu|
|000035a0| 70 20 6d 65 73 73 61 67 | 65 20 61 6e 64 20 72 65 |p messag|e and re|
|000035b0| 61 64 73 20 69 6e 20 74 | 68 65 20 69 63 6f 6e 20 |ads in t|he icon |
|000035c0| 6f 66 20 74 68 65 0a 66 | 69 72 73 74 20 20 61 72 |of the.f|irst ar|
|000035d0| 67 75 6d 65 6e 74 20 20 | 69 6e 20 20 74 68 65 20 |gument |in the |
|000035e0| 20 61 72 67 75 6d 65 6e | 74 20 6c 69 73 74 2e 20 | argumen|t list. |
|000035f0| 54 68 69 73 20 69 73 20 | 74 68 65 20 69 63 6f 6e |This is |the icon|
|00003600| 00 00 00 08 00 00 00 08 | 00 00 00 13 00 00 01 e8 |........|........|
|00003610| 00 00 00 1c d6 f1 6c 49 | 20 75 73 65 64 20 74 6f |......lI| used to|
|00003620| 0a 73 74 61 72 74 20 20 | 74 68 65 20 20 70 72 6f |.start |the pro|
|00003630| 67 72 61 6d 2e 20 20 49 | 74 20 20 73 68 6f 75 6c |gram. I|t shoul|
|00003640| 64 20 20 62 65 20 20 61 | 20 20 54 6f 6f 6c 20 20 |d be a| Tool |
|00003650| 69 63 6f 6e 2e 20 20 49 | 74 20 6d 61 79 20 68 61 |icon. I|t may ha|
|00003660| 76 65 0a 70 61 72 61 6d | 65 74 65 72 73 20 20 73 |ve.param|eters s|
|00003670| 65 74 20 69 6e 20 74 68 | 65 20 54 6f 6f 6c 54 79 |et in th|e ToolTy|
|00003680| 70 65 73 20 61 72 72 61 | 79 2e 20 20 49 20 75 73 |pes arra|y. I us|
|00003690| 65 20 74 68 65 20 46 69 | 6e 64 54 6f 6f 6c 54 79 |e the Fi|ndToolTy|
|000036a0| 70 65 28 29 0a 73 75 62 | 72 6f 75 74 69 6e 65 20 |pe().sub|routine |
|000036b0| 20 74 6f 20 20 63 68 65 | 63 6b 20 66 6f 72 20 6d | to che|ck for m|
|000036c0| 79 20 33 20 70 6f 73 73 | 69 62 6c 65 20 74 6f 6f |y 3 poss|ible too|
|000036d0| 6c 74 79 70 65 73 2e 20 | 46 69 6e 64 54 6f 6f 6c |ltypes. |FindTool|
|000036e0| 54 79 70 65 28 29 0a 69 | 73 20 20 63 61 73 65 20 |Type().i|s case |
|000036f0| 20 73 65 6e 73 69 74 69 | 76 65 2c 20 20 73 6f 20 | sensiti|ve, so |
|00003700| 20 74 6f 20 63 68 61 6e | 67 65 20 74 68 65 20 44 | to chan|ge the D|
|00003710| 45 4c 41 59 20 61 72 67 | 75 6d 65 6e 74 20 27 44 |ELAY arg|ument 'D|
|00003720| 45 4c 41 59 3d 32 30 27 | 0a 6d 75 73 74 20 20 62 |ELAY=20'|.must b|
|00003730| 65 20 20 65 6e 74 65 72 | 65 64 2c 20 20 27 64 65 |e enter|ed, 'de|
|00003740| 6c 61 79 3d 32 30 27 20 | 20 77 6f 6e 27 74 20 77 |lay=20' | won't w|
|00003750| 6f 72 6b 2e 20 20 49 20 | 63 6f 75 6c 64 20 61 6c |ork. I |could al|
|00003760| 73 6f 20 75 73 65 20 74 | 68 65 0a 4d 61 74 63 68 |so use t|he.Match|
|00003770| 54 6f 6f 6c 56 61 6c 75 | 65 28 29 20 20 73 75 62 |ToolValu|e() sub|
|00003780| 72 6f 75 74 69 6e 65 20 | 20 74 6f 20 20 63 68 65 |routine | to che|
|00003790| 63 6b 20 20 66 6f 72 20 | 73 70 65 63 69 66 69 63 |ck for |specific|
|000037a0| 20 76 61 6c 75 65 73 20 | 6f 66 20 61 0a 54 6f 6f | values |of a.Too|
|000037b0| 6c 54 79 70 65 2e 20 20 | 20 54 68 65 20 20 75 73 |lType. | The us|
|000037c0| 65 72 20 20 63 61 6e 20 | 20 75 73 65 20 20 57 6f |er can | use Wo|
|000037d0| 72 6b 62 65 6e 63 68 20 | 20 49 6e 66 6f 20 74 6f |rkbench | Info to|
|000037e0| 6f 6c 20 74 6f 20 65 64 | 69 74 20 74 68 65 0a 0a |ol to ed|it the..|
|000037f0| 0a 0a 0c 0a 0a 0a 0a 0a | 54 6f 6f 6c 54 79 70 65 |........|ToolType|
|00003800| 00 00 00 08 00 00 00 08 | 00 00 00 14 00 00 01 e8 |........|........|
|00003810| 00 00 00 1d ac 3f 3c d1 | 73 20 20 20 61 72 72 61 |.....?<.|s arra|
|00003820| 79 2e 20 20 20 20 49 6e | 20 20 20 6f 72 64 65 72 |y. In| order|
|00003830| 20 20 20 74 6f 20 20 20 | 72 65 61 64 20 20 74 68 | to |read th|
|00003840| 65 20 20 61 72 67 75 6d | 65 6e 74 73 20 20 74 68 |e argum|ents th|
|00003850| 65 0a 69 63 6f 6e 2e 6c | 69 62 72 61 72 79 20 20 |e.icon.l|ibrary |
|00003860| 69 73 20 20 6e 65 65 64 | 65 64 2e 20 20 53 69 6e |is need|ed. Sin|
|00003870| 63 65 20 67 65 74 57 42 | 61 72 67 73 28 29 20 69 |ce getWB|args() i|
|00003880| 73 20 74 68 65 20 6f 6e | 6c 79 20 70 6c 61 63 65 |s the on|ly place|
|00003890| 20 69 74 0a 69 73 20 20 | 6e 65 65 64 65 64 2c 20 | it.is |needed, |
|000038a0| 20 49 20 20 6f 70 65 6e | 20 20 61 6e 64 20 20 63 | I open| and c|
|000038b0| 6c 6f 73 65 20 20 69 74 | 20 68 65 72 65 20 61 6e |lose it| here an|
|000038c0| 64 20 69 74 20 69 73 20 | 6e 6f 74 20 63 6c 6f 73 |d it is |not clos|
|000038d0| 65 64 20 69 6e 0a 64 6f | 6e 65 28 29 2e 20 20 67 |ed in.do|ne(). g|
|000038e0| 65 74 43 4c 49 61 72 67 | 73 28 29 20 20 73 63 61 |etCLIarg|s() sca|
|000038f0| 6e 73 20 74 68 65 20 43 | 20 61 72 67 75 6d 65 6e |ns the C| argumen|
|00003900| 74 20 20 61 72 72 61 79 | 20 66 6f 72 20 74 68 65 |t array| for the|
|00003910| 20 73 61 6d 65 20 33 0a | 61 72 67 75 6d 65 6e 74 | same 3.|argument|
|00003920| 73 2e 20 20 54 68 65 72 | 65 20 20 69 73 20 61 6c |s. Ther|e is al|
|00003930| 73 6f 20 61 6e 20 65 6d | 70 74 79 20 73 75 62 72 |so an em|pty subr|
|00003940| 6f 75 74 69 6e 65 20 63 | 61 6c 6c 65 64 20 5f 77 |outine c|alled _w|
|00003950| 62 5f 70 61 72 73 65 28 | 29 0a 69 6e 20 20 74 68 |b_parse(|).in th|
|00003960| 69 73 20 20 66 69 6c 65 | 2e 20 49 74 20 69 73 20 |is file|. It is |
|00003970| 61 20 64 75 6d 6d 79 20 | 74 6f 20 6b 65 65 70 20 |a dummy |to keep |
|00003980| 74 68 65 20 41 7a 74 65 | 63 20 73 75 62 72 6f 75 |the Azte|c subrou|
|00003990| 74 69 6e 65 20 6f 66 20 | 74 68 65 0a 73 61 6d 65 |tine of |the.same|
|000039a0| 20 20 6e 61 6d 65 20 20 | 66 72 6f 6d 20 20 62 65 | name |from be|
|000039b0| 69 6e 67 20 20 69 6e 63 | 6c 75 64 65 64 20 20 66 |ing inc|luded f|
|000039c0| 72 6f 6d 20 74 68 65 20 | 6c 69 62 72 61 72 79 2e |rom the |library.|
|000039d0| 20 20 5f 77 62 5f 70 61 | 72 73 65 28 29 0a 73 63 | _wb_pa|rse().sc|
|000039e0| 61 6e 73 20 20 74 68 65 | 20 54 6f 6f 6c 54 79 70 |ans the| ToolTyp|
|000039f0| 65 73 20 61 72 72 61 79 | 20 66 6f 72 20 61 20 57 |es array| for a W|
|00003a00| 00 00 00 08 00 00 00 08 | 00 00 00 15 00 00 01 e8 |........|........|
|00003a10| 00 00 00 1e f2 94 6c 49 | 69 6e 64 6f 77 20 73 70 |......lI|indow sp|
|00003a20| 65 63 69 66 69 63 61 74 | 69 6f 6e 20 61 6e 64 20 |ecificat|ion and |
|00003a30| 6f 70 65 6e 73 20 61 0a | 77 69 6e 64 6f 77 20 20 |opens a.|window |
|00003a40| 69 66 20 69 74 20 66 69 | 6e 64 73 20 6f 6e 65 2e |if it fi|nds one.|
|00003a50| 20 53 69 6e 63 65 20 49 | 20 61 6d 20 68 61 6e 64 | Since I| am hand|
|00003a60| 6c 69 6e 67 20 74 68 65 | 20 54 6f 6f 6c 54 79 70 |ling the| ToolTyp|
|00003a70| 65 73 20 61 72 72 61 79 | 2c 0a 61 6e 64 20 6f 70 |es array|,.and op|
|00003a80| 65 6e 69 6e 67 20 6d 79 | 20 6f 77 6e 20 77 69 6e |ening my| own win|
|00003a90| 64 6f 77 2c 20 49 20 64 | 6f 6e 27 74 20 6e 65 65 |dow, I d|on't nee|
|00003aa0| 64 20 74 68 65 20 41 7a | 74 65 63 20 72 6f 75 74 |d the Az|tec rout|
|00003ab0| 69 6e 65 2e 20 20 0a 20 | 20 20 54 68 65 20 66 69 |ine. . | The fi|
|00003ac0| 6c 65 73 20 20 61 62 6f | 75 74 68 65 6c 70 2e 63 |les abo|uthelp.c|
|00003ad0| 20 61 6e 64 20 68 65 6c | 70 77 69 6e 2e 68 20 63 | and hel|pwin.h c|
|00003ae0| 6f 6e 74 61 69 6e 20 65 | 76 65 72 79 74 68 69 6e |ontain e|verythin|
|00003af0| 67 20 6e 65 65 64 65 64 | 0a 66 6f 72 20 20 74 77 |g needed|.for tw|
|00003b00| 6f 20 20 69 74 65 6d 73 | 20 49 20 61 6c 77 61 79 |o items| I alway|
|00003b10| 73 20 68 61 76 65 20 6f | 6e 20 6d 79 20 50 72 6f |s have o|n my Pro|
|00003b20| 6a 65 63 74 20 6d 65 6e | 75 2c 20 41 62 6f 75 74 |ject men|u, About|
|00003b30| 20 61 6e 64 20 48 65 6c | 70 2e 0a 61 62 6f 75 74 | and Hel|p..about|
|00003b40| 28 29 20 20 64 69 73 70 | 6c 61 79 73 20 20 61 20 |() disp|lays a |
|00003b50| 72 65 71 75 65 73 74 65 | 72 20 77 69 74 68 20 70 |requeste|r with p|
|00003b60| 72 6f 67 72 61 6d 20 6e | 61 6d 65 2c 20 76 65 72 |rogram n|ame, ver|
|00003b70| 73 69 6f 6e 2c 20 61 75 | 74 68 6f 72 0a 61 6e 64 |sion, au|thor.and|
|00003b80| 20 20 64 61 74 65 2e 20 | 20 68 65 6c 70 28 29 20 | date. | help() |
|00003b90| 20 4f 70 65 6e 73 20 20 | 69 74 73 20 20 6f 77 6e | Opens |its own|
|00003ba0| 20 20 66 75 6c 6c 20 20 | 73 69 7a 65 64 20 77 69 | full |sized wi|
|00003bb0| 6e 64 6f 77 20 61 6e 64 | 20 70 61 67 65 73 0a 74 |ndow and| pages.t|
|00003bc0| 68 72 6f 75 67 68 20 20 | 61 6e 20 20 61 72 72 61 |hrough |an arra|
|00003bd0| 79 20 20 6f 66 20 74 65 | 78 74 20 6c 69 6e 65 73 |y of te|xt lines|
|00003be0| 2e 20 54 68 65 20 74 65 | 78 74 20 69 73 20 73 74 |. The te|xt is st|
|00003bf0| 6f 72 65 64 20 61 73 20 | 61 6e 20 61 72 72 61 79 |ored as |an array|
|00003c00| 00 00 00 08 00 00 00 08 | 00 00 00 16 00 00 01 e8 |........|........|
|00003c10| 00 00 00 1f 0e 49 c5 93 | 0a 6f 66 20 20 70 6f 69 |.....I..|.of poi|
|00003c20| 6e 74 65 72 73 20 20 74 | 6f 20 20 6c 69 6e 65 73 |nters t|o lines|
|00003c30| 20 6f 66 20 74 65 78 74 | 2e 20 41 20 4e 55 4c 4c | of text|. A NULL|
|00003c40| 20 70 6f 69 6e 74 65 72 | 20 65 6e 64 73 20 74 68 | pointer| ends th|
|00003c50| 65 20 61 72 72 61 79 2e | 20 41 0a 6c 69 6e 65 20 |e array.| A.line |
|00003c60| 20 77 69 74 68 20 20 6f | 6e 6c 79 20 20 61 20 66 | with o|nly a f|
|00003c70| 6f 72 6d 66 65 65 64 20 | 69 73 20 61 20 73 69 67 |ormfeed |is a sig|
|00003c80| 6e 61 6c 20 74 6f 20 73 | 74 6f 70 20 61 6e 64 20 |nal to s|top and |
|00003c90| 77 61 69 74 20 66 6f 72 | 20 74 68 65 0a 75 73 65 |wait for| the.use|
|00003ca0| 72 20 20 74 6f 20 20 63 | 6c 69 63 6b 20 20 74 68 |r to c|lick th|
|00003cb0| 65 20 20 27 4d 4f 52 45 | 27 20 20 67 61 64 67 65 |e 'MORE|' gadge|
|00003cc0| 74 2e 20 54 68 69 73 20 | 66 69 6c 65 20 61 6c 73 |t. This |file als|
|00003cd0| 6f 20 63 6f 6e 74 61 69 | 6e 73 20 74 68 65 0a 74 |o contai|ns the.t|
|00003ce0| 65 78 74 20 20 73 74 72 | 75 63 74 75 72 65 73 20 |ext str|uctures |
|00003cf0| 20 66 6f 72 20 20 6d 79 | 20 20 41 75 74 6f 52 65 | for my| AutoRe|
|00003d00| 71 75 65 73 74 28 29 20 | 20 65 72 72 6f 72 20 72 |quest() | error r|
|00003d10| 65 71 75 65 73 74 65 72 | 73 2e 20 49 20 75 73 65 |equester|s. I use|
|00003d20| 0a 73 69 6e 67 6c 65 20 | 20 61 6e 64 20 20 6d 75 |.single | and mu|
|00003d30| 6c 74 69 2d 6c 69 6e 65 | 20 20 72 65 71 75 65 73 |lti-line| reques|
|00003d40| 74 65 72 73 20 20 74 6f | 20 69 6e 66 6f 72 6d 20 |ters to| inform |
|00003d50| 74 68 65 20 75 73 65 72 | 20 6f 66 20 65 72 72 6f |the user| of erro|
|00003d60| 72 73 0a 61 6e 64 20 6f | 74 68 65 72 20 69 6d 70 |rs.and o|ther imp|
|00003d70| 6f 72 74 61 6e 74 20 69 | 6e 66 6f 72 6d 61 74 69 |ortant i|nformati|
|00003d80| 6f 6e 2e 20 20 0a 20 20 | 20 54 68 65 20 73 6b 65 |on. . | The ske|
|00003d90| 6c 2e 69 6e 66 6f 20 20 | 66 69 6c 65 20 20 69 73 |l.info |file is|
|00003da0| 20 20 61 20 74 6f 6f 6c | 20 69 63 6f 6e 20 74 68 | a tool| icon th|
|00003db0| 61 74 20 63 61 6e 20 62 | 65 20 75 73 65 64 20 74 |at can b|e used t|
|00003dc0| 6f 20 73 74 61 72 74 0a | 73 6b 65 6c 2e 20 20 49 |o start.|skel. I|
|00003dd0| 20 65 64 69 74 20 74 68 | 69 73 20 66 69 6c 65 20 | edit th|is file |
|00003de0| 75 73 69 6e 67 20 74 68 | 65 20 69 63 6f 6e 20 65 |using th|e icon e|
|00003df0| 64 69 74 6f 72 20 74 6f | 20 6d 61 6b 65 20 61 6e |ditor to| make an|
|00003e00| 00 00 00 08 00 00 00 08 | 00 00 00 17 00 00 01 e8 |........|........|
|00003e10| 00 00 00 20 c2 16 e1 91 | 20 69 63 6f 6e 20 66 6f |... ....| icon fo|
|00003e20| 72 0a 74 68 65 20 20 6e | 65 77 20 20 61 70 70 6c |r.the n|ew appl|
|00003e30| 69 63 61 74 69 6f 6e 2e | 20 49 20 75 73 65 20 74 |ication.| I use t|
|00003e40| 68 65 20 57 6f 72 6b 62 | 65 6e 63 68 20 49 6e 66 |he Workb|ench Inf|
|00003e50| 6f 20 6d 65 6e 75 20 73 | 65 6c 65 63 74 69 6f 6e |o menu s|election|
|00003e60| 20 74 6f 0a 65 64 69 74 | 20 20 74 68 65 20 20 54 | to.edit| the T|
|00003e70| 6f 6f 6c 54 79 70 65 73 | 20 20 61 72 72 61 79 20 |oolTypes| array |
|00003e80| 20 61 6e 64 20 61 64 64 | 20 61 6e 79 20 65 6e 74 | and add| any ent|
|00003e90| 72 79 73 20 6e 65 65 64 | 65 64 20 62 79 20 74 68 |rys need|ed by th|
|00003ea0| 65 20 6e 65 77 0a 61 70 | 70 6c 69 63 61 74 69 6f |e new.ap|plicatio|
|00003eb0| 6e 2e 20 20 49 20 20 74 | 68 65 6e 20 20 72 65 6e |n. I t|hen ren|
|00003ec0| 61 6d 65 20 20 69 74 20 | 20 74 6f 20 20 6d 61 74 |ame it | to mat|
|00003ed0| 63 68 20 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 |ch the |name of |
|00003ee0| 74 68 65 20 6e 65 77 0a | 63 6f 6d 6d 61 6e 64 2e |the new.|command.|
|00003ef0| 20 20 0a 20 20 20 54 68 | 65 20 72 65 6d 61 69 6e | . Th|e remain|
|00003f00| 69 6e 67 20 20 20 66 69 | 6c 65 2c 20 20 20 73 6b |ing fi|le, sk|
|00003f10| 77 69 6e 64 6f 77 2e 68 | 2c 20 20 20 63 6f 6e 74 |window.h|, cont|
|00003f20| 61 69 6e 73 20 20 61 6c | 6c 20 20 74 68 65 20 20 |ains al|l the |
|00003f30| 64 61 74 61 0a 73 74 72 | 75 63 74 75 72 65 73 20 |data.str|uctures |
|00003f40| 20 64 65 66 69 6e 69 6e | 67 20 20 6d 79 20 6d 61 | definin|g my ma|
|00003f50| 69 6e 20 77 69 6e 64 6f | 77 2c 20 61 6c 6c 20 69 |in windo|w, all i|
|00003f60| 74 73 20 67 61 64 67 65 | 74 73 20 61 6e 64 20 61 |ts gadge|ts and a|
|00003f70| 6c 6c 20 69 74 73 0a 6d | 65 6e 75 73 2e 20 20 54 |ll its.m|enus. T|
|00003f80| 68 69 73 20 20 63 6f 64 | 65 20 20 77 61 73 20 20 |his cod|e was |
|00003f90| 67 65 6e 65 72 61 74 65 | 64 20 20 77 69 74 68 20 |generate|d with |
|00003fa0| 20 50 6f 77 65 72 57 69 | 6e 64 6f 77 73 20 32 2e | PowerWi|ndows 2.|
|00003fb0| 30 2e 20 49 20 75 73 65 | 0a 50 6f 77 65 72 57 69 |0. I use|.PowerWi|
|00003fc0| 6e 64 6f 77 73 20 20 74 | 6f 20 20 63 72 65 61 74 |ndows t|o creat|
|00003fd0| 65 20 20 61 6c 6c 20 6d | 79 20 77 69 6e 64 6f 77 |e all m|y window|
|00003fe0| 20 64 65 66 69 6e 69 74 | 69 6f 6e 73 2e 20 50 6f | definit|ions. Po|
|00003ff0| 77 65 72 57 69 6e 64 6f | 77 73 0a 6d 61 6b 65 73 |werWindo|ws.makes|
|00004000| 00 00 00 08 00 00 00 08 | 00 00 00 18 00 00 01 e8 |........|........|
|00004010| 00 00 00 21 73 e5 54 eb | 20 20 64 65 73 69 67 6e |...!s.T.| design|
|00004020| 69 6e 67 20 20 61 6e 64 | 20 20 65 64 69 74 69 6e |ing and| editin|
|00004030| 67 20 20 53 63 72 65 65 | 6e 73 20 20 61 6e 64 20 |g Scree|ns and |
|00004040| 20 77 69 6e 64 6f 77 73 | 20 61 6e 64 20 61 6c 6c | windows| and all|
|00004050| 20 74 68 65 0a 74 72 69 | 6d 6d 69 6e 67 73 20 20 | the.tri|mmings |
|00004060| 76 65 72 79 20 20 65 61 | 73 79 2e 20 20 49 20 20 |very ea|sy. I |
|00004070| 61 6c 77 61 79 73 20 20 | 6b 65 65 70 20 6d 79 20 |always |keep my |
|00004080| 50 6f 77 65 72 57 69 6e | 64 6f 77 73 20 67 65 6e |PowerWin|dows gen|
|00004090| 65 72 61 74 65 64 0a 73 | 6f 75 72 63 65 20 20 75 |erated.s|ource u|
|000040a0| 6e 65 64 69 74 65 64 2c | 20 20 73 6f 20 74 68 61 |nedited,| so tha|
|000040b0| 74 20 69 74 20 69 73 20 | 65 61 73 79 20 74 6f 20 |t it is |easy to |
|000040c0| 61 6c 74 65 72 20 74 68 | 65 20 64 65 66 69 6e 69 |alter th|e defini|
|000040d0| 74 69 6f 6e 20 61 6e 64 | 0a 67 65 6e 65 72 61 74 |tion and|.generat|
|000040e0| 65 20 20 6e 65 77 20 73 | 6f 75 72 63 65 2e 20 49 |e new s|ource. I|
|000040f0| 66 20 79 6f 75 20 64 6f | 6e 27 74 20 68 61 76 65 |f you do|n't have|
|00004100| 20 50 6f 77 65 72 57 69 | 6e 64 6f 77 73 2c 20 79 | PowerWi|ndows, y|
|00004110| 6f 75 20 63 61 6e 20 75 | 73 65 0a 73 6b 77 69 6e |ou can u|se.skwin|
|00004120| 64 6f 77 2e 68 20 61 73 | 20 61 20 67 75 69 64 65 |dow.h as| a guide|
|00004130| 20 66 6f 72 20 63 72 65 | 61 74 69 6e 67 20 79 6f | for cre|ating yo|
|00004140| 75 72 20 6f 77 6e 20 77 | 69 6e 64 6f 77 2e 20 20 |ur own w|indow. |
|00004150| 0a 20 20 20 54 68 65 72 | 65 20 61 72 65 20 20 61 |. Ther|e are a|
|00004160| 20 20 6c 6f 74 20 20 6f | 66 20 20 6f 74 68 65 72 | lot o|f other|
|00004170| 20 20 74 68 69 6e 67 73 | 20 20 6e 65 65 64 65 64 | things| needed|
|00004180| 20 20 74 6f 20 20 66 6c | 65 73 68 20 6f 75 74 20 | to fl|esh out |
|00004190| 61 6e 0a 61 70 70 6c 69 | 63 61 74 69 6f 6e 2e 20 |an.appli|cation. |
|000041a0| 20 20 4f 6e 65 20 20 6f | 66 20 20 74 68 65 20 20 | One o|f the |
|000041b0| 6d 6f 73 74 20 20 63 6f | 6d 6d 6f 6e 20 20 69 73 |most co|mmon is|
|000041c0| 20 20 61 20 20 66 69 6c | 65 20 52 65 71 75 65 73 | a fil|e Reques|
|000041d0| 74 65 72 2e 0a 46 6f 72 | 74 75 6e 61 74 65 6c 79 |ter..For|tunately|
|000041e0| 20 20 74 68 65 72 65 20 | 20 61 72 65 20 20 73 65 | there | are se|
|000041f0| 76 65 72 61 6c 20 6f 66 | 20 74 68 65 73 65 20 61 |veral of| these a|
|00004200| 00 00 00 08 00 00 00 08 | 00 00 00 19 00 00 01 e8 |........|........|
|00004210| 00 00 00 22 36 13 92 2c | 76 61 69 6c 61 62 6c 65 |..."6..,|vailable|
|00004220| 20 69 6e 20 74 68 65 20 | 70 75 62 6c 69 63 0a 64 | in the |public.d|
|00004230| 6f 6d 61 69 6e 2e 20 20 | 54 68 65 72 65 20 69 73 |omain. |There is|
|00004240| 20 46 69 6c 65 52 65 71 | 20 62 79 20 50 65 74 65 | FileReq| by Pete|
|00004250| 72 20 64 61 20 53 69 6c | 76 61 20 6f 6e 20 46 69 |r da Sil|va on Fi|
|00004260| 73 68 20 44 69 73 6b 20 | 23 38 35 2c 20 61 6d 64 |sh Disk |#85, amd|
|00004270| 0a 47 65 74 66 69 6c 65 | 20 20 62 79 20 20 43 68 |.Getfile| by Ch|
|00004280| 61 72 6c 69 65 20 20 48 | 65 61 74 68 20 20 6f 6e |arlie H|eath on|
|00004290| 20 20 46 69 73 68 20 44 | 69 73 6b 20 23 34 31 2e | Fish D|isk #41.|
|000042a0| 20 49 20 68 61 76 65 20 | 62 65 65 6e 20 75 73 69 | I have |been usi|
|000042b0| 6e 67 0a 46 69 6c 65 49 | 4f 20 20 62 79 20 20 52 |ng.FileI|O by R|
|000042c0| 4a 20 4d 69 63 61 6c 20 | 66 72 6f 6d 20 74 68 65 |J Mical |from the|
|000042d0| 20 70 72 6f 73 75 69 74 | 65 20 70 61 63 6b 61 67 | prosuit|e packag|
|000042e0| 65 20 6f 6e 20 46 69 73 | 68 20 44 69 73 6b 20 23 |e on Fis|h Disk #|
|000042f0| 31 30 37 2e 0a 50 72 6f | 73 75 69 74 65 20 20 61 |107..Pro|suite a|
|00004300| 6c 73 6f 20 20 68 61 73 | 20 20 73 65 76 65 72 61 |lso has| severa|
|00004310| 6c 20 20 6f 74 68 65 72 | 20 20 67 6f 6f 64 20 20 |l other| good |
|00004320| 75 74 69 6c 69 74 69 65 | 73 2e 20 20 54 68 65 72 |utilitie|s. Ther|
|00004330| 65 20 69 73 20 61 0a 43 | 6f 6c 6f 72 57 69 6e 64 |e is a.C|olorWind|
|00004340| 6f 77 20 20 66 6f 72 20 | 20 65 64 69 74 69 6e 67 |ow for | editing|
|00004350| 20 20 74 68 65 20 20 70 | 61 6c 65 74 74 65 20 6f | the p|alette o|
|00004360| 66 20 61 6e 79 20 73 63 | 72 65 65 6e 2e 20 54 68 |f any sc|reen. Th|
|00004370| 65 72 65 20 69 73 20 61 | 0a 72 65 71 75 65 73 74 |ere is a|.request|
|00004380| 65 72 20 20 68 61 6e 64 | 6c 65 72 20 20 74 6f 20 |er hand|ler to |
|00004390| 68 65 6c 70 20 77 69 74 | 68 20 6d 6f 72 65 20 65 |help wit|h more e|
|000043a0| 6c 65 67 61 6e 74 20 72 | 65 71 75 65 73 74 65 72 |legant r|equester|
|000043b0| 73 20 74 68 61 6e 20 74 | 68 65 0a 41 75 74 6f 52 |s than t|he.AutoR|
|000043c0| 65 71 75 65 73 74 28 29 | 20 72 65 71 75 65 73 74 |equest()| request|
|000043d0| 65 72 73 20 49 20 75 73 | 65 2e 20 20 0a 20 20 20 |ers I us|e. . |
|000043e0| 20 53 6b 65 6c 20 64 6f | 65 73 6e 27 74 20 20 20 | Skel do|esn't |
|000043f0| 62 65 67 69 6e 20 20 20 | 74 6f 20 20 20 65 78 65 |begin |to exe|
|00004400| 00 00 00 08 00 00 00 08 | 00 00 00 1a 00 00 00 ee |........|........|
|00004410| 00 00 00 00 4d b3 7f 5d | 72 63 69 73 65 20 20 20 |....M..]|rcise |
|00004420| 61 6c 6c 20 20 74 68 65 | 20 20 66 65 61 74 75 72 |all the| featur|
|00004430| 65 73 20 20 6f 66 0a 49 | 6e 74 75 69 74 69 6f 6e |es of.I|ntuition|
|00004440| 2c 20 20 62 75 74 20 20 | 69 74 20 20 70 72 6f 76 |, but |it prov|
|00004450| 69 64 65 73 20 20 6d 65 | 20 20 77 69 74 68 20 61 |ides me| with a|
|00004460| 20 67 6f 6f 64 20 73 74 | 61 72 74 69 6e 67 20 70 | good st|arting p|
|00004470| 6f 69 6e 74 20 66 6f 72 | 0a 67 65 74 74 69 6e 67 |oint for|.getting|
|00004480| 20 20 6d 79 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | my app|lication|
|00004490| 20 75 70 20 61 6e 64 20 | 72 75 6e 6e 69 6e 67 20 | up and |running |
|000044a0| 71 75 69 63 6b 6c 79 2e | 20 49 74 20 73 68 6f 75 |quickly.| It shou|
|000044b0| 6c 64 20 61 6c 73 6f 20 | 62 65 0a 61 20 67 6f 6f |ld also |be.a goo|
|000044c0| 64 20 77 61 79 20 66 6f | 72 20 61 20 6e 6f 76 69 |d way fo|r a novi|
|000044d0| 63 65 20 74 6f 20 6c 65 | 61 72 6e 20 49 6e 74 75 |ce to le|arn Intu|
|000044e0| 69 74 69 6f 6e 20 61 20 | 73 74 65 70 20 61 74 20 |ition a |step at |
|000044f0| 61 20 74 69 6d 65 2e 20 | 20 1b 5b 31 22 7a 0a 0a |a time. | .[1"z..|
|00004500| 0a 0a 0a 0a 0c 0a 61 73 | 20 20 73 65 76 65 72 61 |......as| severa|
|00004510| 6c 20 20 6f 74 68 65 72 | 20 20 67 6f 6f 64 20 20 |l other| good |
|00004520| 75 74 69 6c 69 74 69 65 | 73 2e 20 20 54 68 65 72 |utilitie|s. Ther|
|00004530| 65 20 69 73 20 61 0a 43 | 6f 6c 6f 72 57 69 6e 64 |e is a.C|olorWind|
|00004540| 6f 77 20 20 66 6f 72 20 | 20 65 64 69 74 69 6e 67 |ow for | editing|
|00004550| 20 20 74 68 65 20 20 70 | 61 6c 65 74 74 65 20 6f | the p|alette o|
|00004560| 66 20 61 6e 79 20 73 63 | 72 65 65 6e 2e 20 54 68 |f any sc|reen. Th|
|00004570| 65 72 65 20 69 73 20 61 | 0a 72 65 71 75 65 73 74 |ere is a|.request|
|00004580| 65 72 20 20 68 61 6e 64 | 6c 65 72 20 20 74 6f 20 |er hand|ler to |
|00004590| 68 65 6c 70 20 77 69 74 | 68 20 6d 6f 72 65 20 65 |help wit|h more e|
|000045a0| 6c 65 67 61 6e 74 20 72 | 65 71 75 65 73 74 65 72 |legant r|equester|
|000045b0| 73 20 74 68 61 6e 20 74 | 68 65 0a 41 75 74 6f 52 |s than t|he.AutoR|
|000045c0| 65 71 75 65 73 74 28 29 | 20 72 65 71 75 65 73 74 |equest()| request|
|000045d0| 65 72 73 20 49 20 75 73 | 65 2e 20 20 0a 20 20 20 |ers I us|e. . |
|000045e0| 20 53 6b 65 6c 20 64 6f | 65 73 6e 27 74 20 20 20 | Skel do|esn't |
|000045f0| 62 65 67 69 6e 20 20 20 | 74 6f 20 20 20 65 78 65 |begin |to exe|
|00004600| 00 00 00 02 00 00 00 23 | 00 00 00 0f 00 00 00 00 |.......#|........|
|00004610| 00 00 00 24 8d 5d f4 01 | 00 00 00 00 00 00 00 00 |...$.]..|........|
|00004620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004680| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 32 |........|.......2|
|00004700| 00 00 00 31 00 00 00 30 | 00 00 00 2f 00 00 00 2e |...1...0|.../....|
|00004710| 00 00 00 2d 00 00 00 2c | 00 00 00 2b 00 00 00 2a |...-...,|...+...*|
|00004720| 00 00 00 29 00 00 00 28 | 00 00 00 27 00 00 00 26 |...)...(|...'...&|
|00004730| 00 00 00 25 00 00 00 24 | 00 00 00 00 00 00 00 00 |...%...$|........|
|00004740| 00 00 00 00 00 00 1b 94 | 00 00 00 00 00 00 00 00 |........|........|
|00004750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047a0| 00 00 00 00 00 00 14 71 | 00 00 00 05 00 00 03 e8 |.......q|........|
|000047b0| 06 73 6b 65 6c 2e 63 00 | 00 00 00 00 00 00 00 00 |.skel.c.|........|
|000047c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047f0| 00 00 00 00 00 00 06 ce | 00 00 00 00 ff ff ff fd |........|........|
|00004800| 00 00 00 08 00 00 00 23 | 00 00 00 01 00 00 01 e8 |.......#|........|
|00004810| 00 00 00 25 36 37 c6 11 | 2f 2a 0a 20 2a 20 20 53 |...%67..|/*. * S|
|00004820| 6b 65 6c 65 74 6f 6e 20 | 57 6f 72 6b 62 65 6e 63 |keleton |Workbenc|
|00004830| 68 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 70 72 |h applic|ation pr|
|00004840| 6f 67 72 61 6d 0a 20 2a | 0a 20 2a 20 20 20 20 56 |ogram. *|. * V|
|00004850| 65 72 73 69 6f 6e 20 31 | 0a 20 2a 0a 20 2a 20 20 |ersion 1|. *. * |
|00004860| 20 20 62 79 20 4a 6f 65 | 6c 20 53 77 61 6e 6b 20 | by Joe|l Swank |
|00004870| 31 2d 39 2d 38 39 0a 20 | 2a 0a 20 2a 2f 0a 0a 2f |1-9-89. |*. */../|
|00004880| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 20 49 4e 43 4c 55 44 |********|* INCLUD|
|00004890| 45 53 20 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |ES *****|********|
|000048a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 20 2a 2f 0a 0a |********|*** */..|
|000048b0| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 65 78 65 63 2f |.#includ|e <exec/|
|000048c0| 74 79 70 65 73 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |types.h>|.#includ|
|000048d0| 65 20 3c 65 78 65 63 2f | 69 6f 2e 68 3e 0a 23 69 |e <exec/|io.h>.#i|
|000048e0| 6e 63 6c 75 64 65 20 3c | 65 78 65 63 2f 6d 65 6d |nclude <|exec/mem|
|000048f0| 6f 72 79 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |ory.h>.#|include |
|00004900| 3c 6c 69 62 72 61 72 69 | 65 73 2f 64 6f 73 2e 68 |<librari|es/dos.h|
|00004910| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 69 6e 74 75 |>.#inclu|de <intu|
|00004920| 69 74 69 6f 6e 2f 69 6e | 74 75 69 74 69 6f 6e 2e |ition/in|tuition.|
|00004930| 68 3e 0a 0a 0a 2f 2a 20 | 54 65 78 74 20 69 6e 20 |h>.../* |Text in |
|00004940| 68 65 6c 70 77 69 6e 2e | 68 20 20 2a 2f 0a 65 78 |helpwin.|h */.ex|
|00004950| 74 65 72 6e 20 73 74 72 | 75 63 74 20 49 6e 74 75 |tern str|uct Intu|
|00004960| 69 54 65 78 74 20 6f 70 | 66 61 69 6c 74 78 74 20 |iText op|failtxt |
|00004970| 3b 0a 65 78 74 65 72 6e | 20 73 74 72 75 63 74 20 |;.extern| struct |
|00004980| 49 6e 74 75 69 54 65 78 | 74 20 6f 6b 74 78 74 20 |IntuiTex|t oktxt |
|00004990| 3b 0a 65 78 74 65 72 6e | 20 73 74 72 75 63 74 20 |;.extern| struct |
|000049a0| 49 6e 74 75 69 54 65 78 | 74 20 63 61 6e 74 78 74 |IntuiTex|t cantxt|
|000049b0| 20 3b 0a 65 78 74 65 72 | 6e 20 73 74 72 75 63 74 | ;.exter|n struct|
|000049c0| 20 49 6e 74 75 69 54 65 | 78 74 20 72 65 74 72 79 | IntuiTe|xt retry|
|000049d0| 74 78 74 20 3b 0a 0a 2f | 2a 20 44 61 74 61 20 69 |txt ;../|* Data i|
|000049e0| 6e 20 64 6f 61 72 67 73 | 2e 63 20 20 20 2a 2f 0a |n doargs|.c */.|
|000049f0| 65 78 74 65 72 6e 20 63 | 68 61 72 20 74 69 74 6c |extern c|har titl|
|00004a00| 00 00 00 08 00 00 00 23 | 00 00 00 02 00 00 01 e8 |.......#|........|
|00004a10| 00 00 00 26 55 c7 a5 2e | 65 5b 5d 3b 0a 65 78 74 |...&U...|e[];.ext|
|00004a20| 65 72 6e 20 63 68 61 72 | 20 66 69 6c 65 6e 61 6d |ern char| filenam|
|00004a30| 65 5b 5d 3b 0a 0a 2f 2a | 20 44 65 66 69 6e 65 73 |e[];../*| Defines|
|00004a40| 20 66 6f 72 20 73 65 74 | 74 69 6e 67 2f 63 6c 65 | for set|ting/cle|
|00004a50| 61 72 69 6e 67 20 47 41 | 44 47 44 49 53 41 42 4c |aring GA|DGDISABL|
|00004a60| 45 44 20 66 6c 61 67 20 | 2a 2f 0a 23 64 65 66 69 |ED flag |*/.#defi|
|00004a70| 6e 65 20 4f 66 66 47 61 | 64 28 67 61 64 29 20 28 |ne OffGa|d(gad) (|
|00004a80| 67 61 64 29 2e 46 6c 61 | 67 73 20 3d 20 67 61 64 |gad).Fla|gs = gad|
|00004a90| 2e 46 6c 61 67 73 20 7c | 20 47 41 44 47 44 49 53 |.Flags || GADGDIS|
|00004aa0| 41 42 4c 45 44 3b 0a 23 | 64 65 66 69 6e 65 20 4f |ABLED;.#|define O|
|00004ab0| 6e 47 61 64 28 67 61 64 | 29 20 28 67 61 64 29 2e |nGad(gad|) (gad).|
|00004ac0| 46 6c 61 67 73 20 3d 20 | 67 61 64 2e 46 6c 61 67 |Flags = |gad.Flag|
|00004ad0| 73 20 26 20 7e 28 47 41 | 44 47 44 49 53 41 42 4c |s & ~(GA|DGDISABL|
|00004ae0| 45 44 29 3b 0a 0a 0a 73 | 74 72 75 63 74 20 49 6e |ED);...s|truct In|
|00004af0| 74 75 69 74 69 6f 6e 42 | 61 73 65 20 2a 49 6e 74 |tuitionB|ase *Int|
|00004b00| 75 69 74 69 6f 6e 42 61 | 73 65 20 3b 0a 73 74 72 |uitionBa|se ;.str|
|00004b10| 75 63 74 20 47 66 78 42 | 61 73 65 20 2a 47 66 78 |uct GfxB|ase *Gfx|
|00004b20| 42 61 73 65 20 3b 0a 0a | 73 74 72 75 63 74 20 57 |Base ;..|struct W|
|00004b30| 69 6e 64 6f 77 20 2a 77 | 47 20 3d 20 4e 55 4c 4c |indow *w|G = NULL|
|00004b40| 3b 0a 73 74 72 75 63 74 | 20 52 61 73 74 50 6f 72 |;.struct| RastPor|
|00004b50| 74 20 2a 72 70 47 3b 0a | 73 74 72 75 63 74 20 49 |t *rpG;.|struct I|
|00004b60| 6e 74 75 69 4d 65 73 73 | 61 67 65 20 2a 6d 65 73 |ntuiMess|age *mes|
|00004b70| 73 61 67 65 3b 09 2f 2a | 20 74 68 65 20 6d 65 73 |sage;./*| the mes|
|00004b80| 73 61 67 65 20 66 72 6f | 6d 20 74 68 65 20 49 44 |sage fro|m the ID|
|00004b90| 43 4d 50 20 2a 2f 0a 0a | 73 74 72 75 63 74 20 57 |CMP */..|struct W|
|00004ba0| 69 6e 64 6f 77 20 2a 4f | 70 65 6e 57 69 6e 64 6f |indow *O|penWindo|
|00004bb0| 77 28 29 3b 0a 76 6f 69 | 64 20 2a 4f 70 65 6e 4c |w();.voi|d *OpenL|
|00004bc0| 69 62 72 61 72 79 28 29 | 3b 0a 73 74 72 75 63 74 |ibrary()|;.struct|
|00004bd0| 20 49 6e 74 75 69 4d 65 | 73 73 61 67 65 20 2a 47 | IntuiMe|ssage *G|
|00004be0| 65 74 4d 73 67 28 29 3b | 0a 73 74 72 75 63 74 20 |etMsg();|.struct |
|00004bf0| 4d 65 6e 75 49 74 65 6d | 20 2a 49 74 65 6d 41 64 |MenuItem| *ItemAd|
|00004c00| 00 00 00 08 00 00 00 23 | 00 00 00 03 00 00 01 e8 |.......#|........|
|00004c10| 00 00 00 27 d2 99 cb f1 | 64 72 65 73 73 28 29 3b |...'....|dress();|
|00004c20| 0a 0a 2f 2a 20 67 65 74 | 20 74 68 65 20 50 6f 77 |../* get| the Pow|
|00004c30| 65 72 57 69 6e 64 6f 77 | 73 20 32 2e 30 20 63 6f |erWindow|s 2.0 co|
|00004c40| 64 65 20 2a 2f 0a 23 69 | 6e 63 6c 75 64 65 20 22 |de */.#i|nclude "|
|00004c50| 73 6b 77 69 6e 64 6f 77 | 2e 68 22 0a 0a 2f 2a 20 |skwindow|.h"../* |
|00004c60| 69 6e 74 65 72 6e 61 6c | 20 6d 6f 64 65 73 20 2a |internal| modes *|
|00004c70| 2f 0a 6c 6f 6e 67 20 64 | 65 6c 61 79 20 3d 20 31 |/.long d|elay = 1|
|00004c80| 30 4c 3b 20 20 20 20 20 | 20 2f 2a 20 64 72 61 77 |0L; | /* draw|
|00004c90| 20 73 70 65 65 64 20 63 | 6f 6e 74 72 6f 6c 20 2a | speed c|ontrol *|
|00004ca0| 2f 0a 63 68 61 72 20 64 | 65 66 74 69 74 6c 65 5b |/.char d|eftitle[|
|00004cb0| 5d 20 20 2f 2a 20 44 65 | 66 61 75 6c 74 20 57 69 |] /* De|fault Wi|
|00004cc0| 6e 64 6f 77 20 74 69 74 | 6c 65 20 2a 2f 0a 20 20 |ndow tit|le */. |
|00004cd0| 20 20 20 20 3d 20 22 4e | 6f 20 54 69 74 6c 65 20 | = "N|o Title |
|00004ce0| 53 70 65 63 69 66 69 65 | 64 22 3b 0a 0a 0a 0a 6d |Specifie|d";....m|
|00004cf0| 61 69 6e 28 61 72 67 63 | 2c 61 72 67 76 29 0a 69 |ain(argc|,argv).i|
|00004d00| 6e 74 20 61 72 67 63 3b | 0a 63 68 61 72 20 2a 61 |nt argc;|.char *a|
|00004d10| 72 67 76 5b 5d 3b 0a 7b | 0a 09 55 57 4f 52 44 20 |rgv[];.{|..UWORD |
|00004d20| 63 6f 64 65 3b 0a 09 55 | 4c 4f 4e 47 20 63 6c 61 |code;..U|LONG cla|
|00004d30| 73 73 3b 0a 09 41 50 54 | 52 20 6f 62 6a 65 63 74 |ss;..APT|R object|
|00004d40| 3b 0a 20 0a 0a 09 73 74 | 72 63 70 79 28 74 69 74 |;. ...st|rcpy(tit|
|00004d50| 6c 65 2c 64 65 66 74 69 | 74 6c 65 29 3b 20 20 20 |le,defti|tle); |
|00004d60| 20 2f 2a 20 73 65 74 20 | 64 65 66 61 75 6c 74 20 | /* set |default |
|00004d70| 74 69 74 6c 65 20 2a 2f | 0a 0a 09 2f 2a 20 4f 70 |title */|.../* Op|
|00004d80| 65 6e 20 74 68 65 20 6c | 69 62 72 61 72 69 65 73 |en the l|ibraries|
|00004d90| 20 2a 2f 0a 0a 09 49 6e | 74 75 69 74 69 6f 6e 42 | */...In|tuitionB|
|00004da0| 61 73 65 20 3d 20 28 73 | 74 72 75 63 74 20 49 6e |ase = (s|truct In|
|00004db0| 74 75 69 74 69 6f 6e 42 | 61 73 65 20 2a 29 0a 09 |tuitionB|ase *)..|
|00004dc0| 09 4f 70 65 6e 4c 69 62 | 72 61 72 79 28 22 69 6e |.OpenLib|rary("in|
|00004dd0| 74 75 69 74 69 6f 6e 2e | 6c 69 62 72 61 72 79 22 |tuition.|library"|
|00004de0| 2c 20 30 4c 29 3b 0a 09 | 69 66 20 28 49 6e 74 75 |, 0L);..|if (Intu|
|00004df0| 69 74 69 6f 6e 42 61 73 | 65 20 3d 3d 20 4e 55 4c |itionBas|e == NUL|
|00004e00| 00 00 00 08 00 00 00 23 | 00 00 00 04 00 00 01 e8 |.......#|........|
|00004e10| 00 00 00 28 69 23 26 cb | 4c 29 0a 09 09 7b 0a 09 |...(i#&.|L)...{..|
|00004e20| 09 64 6f 6e 65 28 31 31 | 29 3b 0a 09 09 7d 0a 09 |.done(11|);...}..|
|00004e30| 47 66 78 42 61 73 65 20 | 3d 20 28 73 74 72 75 63 |GfxBase |= (struc|
|00004e40| 74 20 47 66 78 42 61 73 | 65 20 2a 29 4f 70 65 6e |t GfxBas|e *)Open|
|00004e50| 4c 69 62 72 61 72 79 28 | 22 67 72 61 70 68 69 63 |Library(|"graphic|
|00004e60| 73 2e 6c 69 62 72 61 72 | 79 22 2c 20 30 4c 29 3b |s.librar|y", 0L);|
|00004e70| 0a 09 69 66 20 28 47 66 | 78 42 61 73 65 20 3d 3d |..if (Gf|xBase ==|
|00004e80| 20 4e 55 4c 4c 29 0a 09 | 09 7b 0a 09 09 64 6f 6e | NULL)..|.{...don|
|00004e90| 65 28 31 30 29 3b 0a 09 | 09 7d 0a 0a 09 2f 2a 20 |e(10);..|.}.../* |
|00004ea0| 20 20 47 65 74 20 74 68 | 65 20 61 72 67 75 6d 65 | Get th|e argume|
|00004eb0| 6e 74 73 20 2a 2f 0a 09 | 69 66 20 28 61 72 67 63 |nts */..|if (argc|
|00004ec0| 20 3d 3d 20 30 29 20 67 | 65 74 57 42 61 72 67 73 | == 0) g|etWBargs|
|00004ed0| 28 29 3b 0a 09 65 6c 73 | 65 20 67 65 74 43 4c 49 |();..els|e getCLI|
|00004ee0| 61 72 67 73 28 61 72 67 | 63 2c 61 72 67 76 29 3b |args(arg|c,argv);|
|00004ef0| 0a 0a 09 2f 2a 20 53 65 | 74 20 75 70 20 74 68 65 |.../* Se|t up the|
|00004f00| 20 47 61 64 67 65 74 73 | 20 2a 2f 0a 09 4f 66 66 | Gadgets| */..Off|
|00004f10| 47 61 64 28 53 74 6f 70 | 5f 47 61 64 29 0a 0a 0a |Gad(Stop|_Gad)...|
|00004f20| 09 77 47 20 3d 20 4f 70 | 65 6e 57 69 6e 64 6f 77 |.wG = Op|enWindow|
|00004f30| 28 26 4e 65 77 57 69 6e | 64 6f 77 53 74 72 75 63 |(&NewWin|dowStruc|
|00004f40| 74 75 72 65 31 29 3b 09 | 2f 2a 20 6f 70 65 6e 20 |ture1);.|/* open |
|00004f50| 74 68 65 20 77 69 6e 64 | 6f 77 20 2a 2f 0a 09 69 |the wind|ow */..i|
|00004f60| 66 20 28 20 77 47 20 3d | 3d 20 4e 55 4c 4c 20 29 |f ( wG =|= NULL )|
|00004f70| 0a 09 09 7b 0a 09 09 64 | 6f 6e 65 28 31 32 29 3b |...{...d|one(12);|
|00004f80| 0a 09 09 7d 0a 0a 09 72 | 70 47 20 3d 20 77 47 2d |...}...r|pG = wG-|
|00004f90| 3e 52 50 6f 72 74 3b 09 | 2f 2a 20 67 65 74 20 61 |>RPort;.|/* get a|
|00004fa0| 20 72 61 73 74 70 6f 72 | 74 20 70 6f 69 6e 74 65 | rastpor|t pointe|
|00004fb0| 72 20 66 6f 72 20 74 68 | 65 20 77 69 6e 64 6f 77 |r for th|e window|
|00004fc0| 20 2a 2f 0a 0a 09 53 65 | 74 4d 65 6e 75 53 74 72 | */...Se|tMenuStr|
|00004fd0| 69 70 28 77 47 2c 26 4d | 65 6e 75 4c 69 73 74 31 |ip(wG,&M|enuList1|
|00004fe0| 29 3b 09 2f 2a 20 61 74 | 74 61 63 68 20 6d 79 20 |);./* at|tach my |
|00004ff0| 4d 65 6e 75 20 2a 2f 0a | 0a 09 64 6f 5f 74 69 74 |Menu */.|..do_tit|
|00005000| 00 00 00 08 00 00 00 23 | 00 00 00 05 00 00 01 e8 |.......#|........|
|00005010| 00 00 00 29 68 eb 5e 6e | 6c 65 28 29 3b 20 20 20 |...)h.^n|le(); |
|00005020| 20 20 20 2f 2a 20 77 72 | 69 74 65 20 74 68 65 20 | /* wr|ite the |
|00005030| 74 69 74 6c 65 20 2a 2f | 0a 0a 0a 09 2f 2a 20 57 |title */|..../* W|
|00005040| 61 69 74 20 66 6f 72 20 | 73 6f 6d 65 20 55 73 65 |ait for |some Use|
|00005050| 72 20 69 6e 74 65 72 61 | 63 74 69 6f 6e 20 2a 2f |r intera|ction */|
|00005060| 0a 09 77 68 69 6c 65 28 | 31 29 0a 09 7b 0a 09 09 |..while(|1)..{...|
|00005070| 57 61 69 74 50 6f 72 74 | 28 77 47 2d 3e 55 73 65 |WaitPort|(wG->Use|
|00005080| 72 50 6f 72 74 29 3b 0a | 09 09 09 77 68 69 6c 65 |rPort);.|...while|
|00005090| 28 20 28 6d 65 73 73 61 | 67 65 20 3d 20 28 73 74 |( (messa|ge = (st|
|000050a0| 72 75 63 74 20 49 6e 74 | 75 69 4d 65 73 73 61 67 |ruct Int|uiMessag|
|000050b0| 65 20 2a 29 0a 09 09 09 | 09 47 65 74 4d 73 67 28 |e *)....|.GetMsg(|
|000050c0| 77 47 2d 3e 55 73 65 72 | 50 6f 72 74 29 20 29 20 |wG->User|Port) ) |
|000050d0| 21 3d 20 4e 55 4c 4c 29 | 0a 09 09 09 7b 0a 09 09 |!= NULL)|....{...|
|000050e0| 09 09 63 6f 64 65 20 3d | 20 6d 65 73 73 61 67 65 |..code =| message|
|000050f0| 2d 3e 43 6f 64 65 3b 20 | 20 2f 2a 20 4d 45 4e 55 |->Code; | /* MENU|
|00005100| 4e 55 4d 20 2a 2f 0a 09 | 09 09 09 6f 62 6a 65 63 |NUM */..|...objec|
|00005110| 74 20 3d 20 6d 65 73 73 | 61 67 65 2d 3e 49 41 64 |t = mess|age->IAd|
|00005120| 64 72 65 73 73 3b 20 20 | 2f 2a 20 47 61 64 67 65 |dress; |/* Gadge|
|00005130| 74 20 2a 2f 0a 09 09 09 | 09 63 6c 61 73 73 20 3d |t */....|.class =|
|00005140| 20 6d 65 73 73 61 67 65 | 2d 3e 43 6c 61 73 73 3b | message|->Class;|
|00005150| 20 20 2f 2a 20 49 44 43 | 4d 50 20 46 6c 61 67 73 | /* IDC|MP Flags|
|00005160| 20 2a 2f 0a 09 09 09 09 | 52 65 70 6c 79 4d 73 67 | */.....|ReplyMsg|
|00005170| 28 6d 65 73 73 61 67 65 | 29 3b 20 20 2f 2a 20 46 |(message|); /* F|
|00005180| 72 65 65 20 74 68 65 20 | 73 65 6e 64 65 72 20 2a |ree the |sender *|
|00005190| 2f 0a 09 09 09 09 73 77 | 69 74 63 68 20 28 63 6c |/.....sw|itch (cl|
|000051a0| 61 73 73 29 0a 09 09 09 | 09 09 7b 0a 09 09 09 09 |ass)....|..{.....|
|000051b0| 09 63 61 73 65 20 43 4c | 4f 53 45 57 49 4e 44 4f |.case CL|OSEWINDO|
|000051c0| 57 20 3a 0a 09 09 09 09 | 09 09 64 6f 6e 65 28 30 |W :.....|..done(0|
|000051d0| 29 3b 20 20 20 2f 2a 20 | 63 6c 6f 73 65 20 67 61 |); /* |close ga|
|000051e0| 64 67 65 74 20 63 6c 69 | 63 6b 65 64 20 2a 2f 0a |dget cli|cked */.|
|000051f0| 09 09 09 09 09 63 61 73 | 65 20 47 41 44 47 45 54 |.....cas|e GADGET|
|00005200| 00 00 00 08 00 00 00 23 | 00 00 00 06 00 00 01 e8 |.......#|........|
|00005210| 00 00 00 2a 45 b8 33 6f | 55 50 3a 0a 09 09 09 09 |...*E.3o|UP:.....|
|00005220| 09 09 69 66 20 28 6f 62 | 6a 65 63 74 20 3d 3d 20 |..if (ob|ject == |
|00005230| 28 41 50 54 52 29 20 26 | 47 6f 5f 47 61 64 29 0a |(APTR) &|Go_Gad).|
|00005240| 09 09 09 09 09 09 09 7b | 0a 09 09 09 09 09 09 09 |.......{|........|
|00005250| 64 6f 5f 69 74 28 29 3b | 0a 09 09 09 09 09 09 09 |do_it();|........|
|00005260| 62 72 65 61 6b 3b 0a 09 | 09 09 09 09 09 09 7d 0a |break;..|......}.|
|00005270| 09 09 09 09 09 09 2f 2a | 20 61 64 64 20 6d 6f 72 |....../*| add mor|
|00005280| 65 20 67 61 64 67 65 74 | 20 63 68 65 63 6b 73 20 |e gadget| checks |
|00005290| 68 65 72 65 20 2a 2f 0a | 09 09 09 09 09 09 62 72 |here */.|......br|
|000052a0| 65 61 6b 3b 0a 09 09 09 | 09 09 63 61 73 65 20 4d |eak;....|..case M|
|000052b0| 45 4e 55 50 49 43 4b 3a | 20 20 20 20 2f 2a 20 6d |ENUPICK:| /* m|
|000052c0| 65 6e 75 20 73 65 6c 65 | 63 74 69 6f 6e 20 6d 61 |enu sele|ction ma|
|000052d0| 64 65 20 2a 2f 0a 09 09 | 09 09 09 09 2f 2a 20 49 |de */...|..../* I|
|000052e0| 20 67 65 74 20 61 20 4e | 55 4c 4c 20 6d 65 73 73 | get a N|ULL mess|
|000052f0| 61 67 65 20 77 68 65 6e | 65 76 65 72 20 74 68 65 |age when|ever the|
|00005300| 20 75 73 65 72 20 62 72 | 69 6e 67 73 0a 09 09 09 | user br|ings....|
|00005310| 09 09 09 20 20 20 75 70 | 20 74 68 65 20 6d 65 6e |... up| the men|
|00005320| 75 20 62 75 74 20 64 6f | 65 73 6e 27 74 20 73 65 |u but do|esn't se|
|00005330| 6c 65 63 74 20 61 6e 79 | 74 68 69 6e 67 20 20 20 |lect any|thing |
|00005340| 20 2a 2f 0a 09 09 09 09 | 09 09 69 66 20 28 63 6f | */.....|..if (co|
|00005350| 64 65 20 21 3d 20 4d 45 | 4e 55 4e 55 4c 4c 29 20 |de != ME|NUNULL) |
|00005360| 64 6f 5f 70 69 63 6b 28 | 28 55 53 48 4f 52 54 29 |do_pick(|(USHORT)|
|00005370| 63 6f 64 65 29 3b 0a 09 | 09 09 09 09 09 62 72 65 |code);..|.....bre|
|00005380| 61 6b 3b 0a 09 09 09 09 | 09 7d 0a 09 09 09 7d 0a |ak;.....|.}....}.|
|00005390| 09 7d 20 0a 7d 0a 0a 2f | 2a 0a 20 2a 20 43 6c 65 |.} .}../|*. * Cle|
|000053a0| 61 6e 75 70 20 61 6e 64 | 20 65 78 69 74 0a 20 2a |anup and| exit. *|
|000053b0| 2f 0a 0a 64 6f 6e 65 28 | 68 6f 77 29 0a 69 6e 74 |/..done(|how).int|
|000053c0| 20 68 6f 77 3b 0a 7b 0a | 09 69 66 20 28 77 47 29 | how;.{.|.if (wG)|
|000053d0| 20 43 6c 65 61 72 4d 65 | 6e 75 53 74 72 69 70 28 | ClearMe|nuStrip(|
|000053e0| 77 47 29 3b 0a 09 69 66 | 20 28 77 47 29 20 43 6c |wG);..if| (wG) Cl|
|000053f0| 6f 73 65 57 69 6e 64 6f | 77 28 77 47 29 3b 0a 09 |oseWindo|w(wG);..|
|00005400| 00 00 00 08 00 00 00 23 | 00 00 00 07 00 00 01 e8 |.......#|........|
|00005410| 00 00 00 2b 78 42 f7 ce | 69 66 20 28 47 66 78 42 |...+xB..|if (GfxB|
|00005420| 61 73 65 20 21 3d 20 4e | 55 4c 4c 29 20 43 6c 6f |ase != N|ULL) Clo|
|00005430| 73 65 4c 69 62 72 61 72 | 79 28 47 66 78 42 61 73 |seLibrar|y(GfxBas|
|00005440| 65 29 3b 0a 09 69 66 20 | 28 49 6e 74 75 69 74 69 |e);..if |(Intuiti|
|00005450| 6f 6e 42 61 73 65 20 21 | 3d 20 4e 55 4c 4c 29 20 |onBase !|= NULL) |
|00005460| 43 6c 6f 73 65 4c 69 62 | 72 61 72 79 28 49 6e 74 |CloseLib|rary(Int|
|00005470| 75 69 74 69 6f 6e 42 61 | 73 65 29 3b 0a 09 65 78 |uitionBa|se);..ex|
|00005480| 69 74 28 68 6f 77 29 3b | 0a 0a 20 2f 2a 20 65 78 |it(how);|.. /* ex|
|00005490| 69 74 20 63 6f 64 65 73 | 20 0a 20 20 2a 20 30 20 |it codes| . * 0 |
|000054a0| 20 55 73 65 72 20 72 65 | 71 75 65 73 74 65 64 0a | User re|quested.|
|000054b0| 20 20 2a 20 31 30 20 67 | 72 61 70 68 69 63 73 20 | * 10 g|raphics |
|000054c0| 6c 69 62 20 6f 70 65 6e | 20 66 61 69 6c 0a 20 20 |lib open| fail. |
|000054d0| 2a 20 31 31 20 69 6e 74 | 75 69 74 69 6f 6e 20 6c |* 11 int|uition l|
|000054e0| 69 62 20 6f 70 65 6e 20 | 66 61 69 6c 0a 20 20 2a |ib open |fail. *|
|000054f0| 20 31 32 20 6d 61 69 6e | 20 77 69 6e 64 6f 77 20 | 12 main| window |
|00005500| 6f 70 65 6e 20 66 61 69 | 6c 0a 20 20 2a 20 31 33 |open fai|l. * 13|
|00005510| 20 5f 61 62 6f 72 74 28 | 29 20 63 61 6c 6c 65 64 | _abort(|) called|
|00005520| 0a 20 20 2a 20 31 34 20 | 42 61 64 20 43 4c 49 20 |. * 14 |Bad CLI |
|00005530| 61 72 67 73 0a 20 20 2a | 2f 0a 7d 0a 0a 0a 2f 2a |args. *|/.}.../*|
|00005540| 0a 20 2a 20 64 6f 5f 70 | 69 63 6b 20 3a 20 68 61 |. * do_p|ick : ha|
|00005550| 6e 64 6c 65 20 63 68 61 | 69 6e 20 6f 66 20 6d 65 |ndle cha|in of me|
|00005560| 6e 75 20 73 65 6c 65 63 | 74 69 6f 6e 73 0a 20 2a |nu selec|tions. *|
|00005570| 2f 0a 0a 64 6f 5f 70 69 | 63 6b 28 6d 65 6e 75 6e |/..do_pi|ck(menun|
|00005580| 75 6d 29 0a 55 53 48 4f | 52 54 20 6d 65 6e 75 6e |um).USHO|RT menun|
|00005590| 75 6d 3b 0a 7b 0a 73 74 | 72 75 63 74 20 4d 65 6e |um;.{.st|ruct Men|
|000055a0| 75 49 74 65 6d 20 2a 69 | 74 65 6d 2c 20 2a 49 74 |uItem *i|tem, *It|
|000055b0| 65 6d 41 64 64 72 65 73 | 73 28 29 3b 0a 09 77 68 |emAddres|s();..wh|
|000055c0| 69 6c 65 20 28 6d 65 6e | 75 6e 75 6d 20 21 3d 20 |ile (men|unum != |
|000055d0| 4d 45 4e 55 4e 55 4c 4c | 29 0a 09 09 7b 0a 09 09 |MENUNULL|)...{...|
|000055e0| 73 77 69 74 63 68 28 4d | 45 4e 55 4e 55 4d 28 6d |switch(M|ENUNUM(m|
|000055f0| 65 6e 75 6e 75 6d 29 29 | 0a 09 09 09 7b 0a 09 09 |enunum))|....{...|
|00005600| 00 00 00 08 00 00 00 23 | 00 00 00 08 00 00 01 e8 |.......#|........|
|00005610| 00 00 00 2c 4c 1c 30 38 | 09 63 61 73 65 20 30 3a |...,L.08|.case 0:|
|00005620| 20 20 20 20 20 2f 2a 20 | 50 72 6f 6a 65 63 74 20 | /* |Project |
|00005630| 4d 65 6e 75 20 2a 2f 0a | 09 09 09 73 77 69 74 63 |Menu */.|...switc|
|00005640| 68 28 49 54 45 4d 4e 55 | 4d 28 6d 65 6e 75 6e 75 |h(ITEMNU|M(menunu|
|00005650| 6d 29 29 0a 09 09 09 09 | 7b 0a 09 09 09 09 63 61 |m)).....|{.....ca|
|00005660| 73 65 20 30 3a 20 2f 2a | 20 4f 70 65 6e 20 2a 2f |se 0: /*| Open */|
|00005670| 0a 09 09 09 09 09 64 6f | 5f 6f 70 65 6e 28 29 3b |......do|_open();|
|00005680| 0a 09 09 09 09 09 62 72 | 65 61 6b 3b 0a 09 09 09 |......br|eak;....|
|00005690| 09 63 61 73 65 20 31 3a | 20 2f 2a 20 41 62 6f 75 |.case 1:| /* Abou|
|000056a0| 74 20 2a 2f 0a 09 09 09 | 09 09 61 62 6f 75 74 28 |t */....|..about(|
|000056b0| 29 3b 0a 09 09 09 09 09 | 62 72 65 61 6b 3b 0a 09 |);......|break;..|
|000056c0| 09 09 09 63 61 73 65 20 | 32 3a 20 2f 2a 20 48 65 |...case |2: /* He|
|000056d0| 6c 70 20 2a 2f 0a 09 09 | 09 09 09 68 65 6c 70 28 |lp */...|...help(|
|000056e0| 29 3b 0a 09 09 09 09 09 | 62 72 65 61 6b 3b 0a 09 |);......|break;..|
|000056f0| 09 09 09 63 61 73 65 20 | 33 3a 20 2f 2a 20 51 75 |...case |3: /* Qu|
|00005700| 69 74 20 2a 2f 0a 09 09 | 09 09 09 64 6f 6e 65 28 |it */...|...done(|
|00005710| 30 29 3b 0a 09 09 09 09 | 7d 0a 09 09 09 62 72 65 |0);.....|}....bre|
|00005720| 61 6b 3b 0a 09 09 09 63 | 61 73 65 20 31 3a 20 20 |ak;....c|ase 1: |
|00005730| 20 20 20 2f 2a 20 4f 70 | 74 69 6f 6e 73 20 4d 65 | /* Op|tions Me|
|00005740| 6e 75 20 2a 2f 0a 09 09 | 09 73 77 69 74 63 68 28 |nu */...|.switch(|
|00005750| 49 54 45 4d 4e 55 4d 28 | 6d 65 6e 75 6e 75 6d 29 |ITEMNUM(|menunum)|
|00005760| 29 0a 09 09 09 09 7b 0a | 0a 09 09 09 09 2f 2a 20 |).....{.|...../* |
|00005770| 54 68 72 65 65 20 6d 75 | 74 75 61 6c 6c 79 20 65 |Three mu|tually e|
|00005780| 78 63 6c 75 64 65 64 20 | 69 74 65 6d 73 2e 20 52 |xcluded |items. R|
|00005790| 65 61 6c 6c 79 20 6e 6f | 74 68 69 6e 67 20 74 6f |eally no|thing to|
|000057a0| 20 64 6f 2e 0a 09 09 09 | 09 20 20 20 69 6e 74 75 | do.....|. intu|
|000057b0| 69 74 69 6f 6e 20 6b 65 | 65 70 73 20 74 72 61 63 |ition ke|eps trac|
|000057c0| 6b 2c 20 49 20 6a 75 73 | 74 20 72 65 61 64 20 74 |k, I jus|t read t|
|000057d0| 68 65 20 43 48 45 43 4b | 45 44 20 66 6c 61 67 0a |he CHECK|ED flag.|
|000057e0| 09 09 09 09 20 20 20 69 | 6e 20 74 68 65 20 53 75 |.... i|n the Su|
|000057f0| 62 49 74 65 6d 20 20 20 | 20 20 20 20 20 20 20 20 |bItem | |
|00005800| 00 00 00 08 00 00 00 23 | 00 00 00 09 00 00 01 e8 |.......#|........|
|00005810| 00 00 00 2d 57 7e 59 27 | 20 20 20 2a 2f 0a 0a 09 |...-W~Y'| */...|
|00005820| 09 09 09 63 61 73 65 20 | 30 3a 20 20 20 20 20 2f |...case |0: /|
|00005830| 2a 20 57 42 20 43 6f 6c | 6f 72 20 4e 75 6d 62 65 |* WB Col|or Numbe|
|00005840| 72 20 2a 2f 0a 09 09 09 | 09 73 77 69 74 63 68 28 |r */....|.switch(|
|00005850| 53 55 42 4e 55 4d 28 6d | 65 6e 75 6e 75 6d 29 29 |SUBNUM(m|enunum))|
|00005860| 0a 09 09 09 09 09 7b 0a | 09 09 09 09 09 63 61 73 |......{.|.....cas|
|00005870| 65 20 30 3a 20 20 20 2f | 2a 20 31 20 2a 2f 0a 09 |e 0: /|* 1 */..|
|00005880| 09 09 09 09 09 62 72 65 | 61 6b 3b 0a 09 09 09 09 |.....bre|ak;.....|
|00005890| 09 63 61 73 65 20 31 3a | 20 20 20 2f 2a 20 32 20 |.case 1:| /* 2 |
|000058a0| 2a 2f 0a 09 09 09 09 09 | 09 62 72 65 61 6b 3b 0a |*/......|.break;.|
|000058b0| 09 09 09 09 09 63 61 73 | 65 20 32 3a 20 20 20 2f |.....cas|e 2: /|
|000058c0| 2a 20 33 20 2a 2f 0a 09 | 09 09 09 09 09 62 72 65 |* 3 */..|.....bre|
|000058d0| 61 6b 3b 0a 09 09 09 09 | 09 7d 0a 09 09 09 09 62 |ak;.....|.}.....b|
|000058e0| 72 65 61 6b 3b 0a 09 09 | 09 09 7d 0a 09 09 09 62 |reak;...|..}....b|
|000058f0| 72 65 61 6b 3b 0a 09 09 | 09 64 65 66 61 75 6c 74 |reak;...|.default|
|00005900| 3a 09 2f 2a 20 57 68 61 | 74 27 73 20 74 68 69 73 |:./* Wha|t's this|
|00005910| 20 67 61 72 62 61 67 65 | 20 3f 20 2a 2f 0a 09 09 | garbage| ? */...|
|00005920| 09 09 6d 65 6e 75 6e 75 | 6d 20 3d 20 4d 45 4e 55 |..menunu|m = MENU|
|00005930| 4e 55 4c 4c 3b 0a 09 09 | 09 7d 20 20 20 20 20 20 |NULL;...|.} |
|00005940| 20 2f 2a 20 65 6e 64 20 | 73 77 69 74 63 68 20 4d | /* end |switch M|
|00005950| 45 4e 55 4e 55 4d 20 20 | 2a 2f 0a 0a 09 09 2f 2a |ENUNUM |*/..../*|
|00005960| 20 47 65 74 20 63 68 61 | 69 6e 20 74 6f 20 6e 65 | Get cha|in to ne|
|00005970| 78 74 20 73 65 6c 65 63 | 74 69 6f 6e 2e 20 4e 65 |xt selec|tion. Ne|
|00005980| 78 74 53 65 6c 65 63 74 | 20 63 6f 6e 74 61 69 6e |xtSelect| contain|
|00005990| 73 20 61 6e 6f 74 68 65 | 72 20 69 74 65 6d 0a 09 |s anothe|r item..|
|000059a0| 09 20 20 20 77 68 65 6e | 20 74 68 65 20 75 73 65 |. when| the use|
|000059b0| 72 20 6d 61 6b 65 73 20 | 6d 75 6c 74 69 70 6c 65 |r makes |multiple|
|000059c0| 20 6d 65 6e 75 20 73 65 | 6c 65 63 74 69 6f 6e 73 | menu se|lections|
|000059d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2a 2f 0a | | */.|
|000059e0| 09 09 69 74 65 6d 20 3d | 20 49 74 65 6d 41 64 64 |..item =| ItemAdd|
|000059f0| 72 65 73 73 28 26 4d 65 | 6e 75 4c 69 73 74 31 2c |ress(&Me|nuList1,|
|00005a00| 00 00 00 08 00 00 00 23 | 00 00 00 0a 00 00 01 e8 |.......#|........|
|00005a10| 00 00 00 2e c9 a1 ac 1a | 28 6c 6f 6e 67 29 20 6d |........|(long) m|
|00005a20| 65 6e 75 6e 75 6d 29 3b | 0a 09 09 6d 65 6e 75 6e |enunum);|...menun|
|00005a30| 75 6d 20 3d 20 69 74 65 | 6d 2d 3e 4e 65 78 74 53 |um = ite|m->NextS|
|00005a40| 65 6c 65 63 74 3b 0a 09 | 09 7d 0a 7d 0a 0a 0a 2f |elect;..|.}.}.../|
|00005a50| 2a 0a 20 2a 20 20 64 6f | 20 73 6f 6d 65 74 68 69 |*. * do| somethi|
|00005a60| 6e 67 0a 20 2a 2f 0a 0a | 64 6f 5f 69 74 28 29 0a |ng. */..|do_it().|
|00005a70| 7b 0a 09 55 4c 4f 4e 47 | 20 63 6c 61 73 73 3b 0a |{..ULONG| class;.|
|00005a80| 09 73 74 72 75 63 74 20 | 49 6e 74 75 69 4d 65 73 |.struct |IntuiMes|
|00005a90| 73 61 67 65 20 2a 6d 65 | 73 73 61 67 65 3b 09 2f |sage *me|ssage;./|
|00005aa0| 2a 20 74 68 65 20 6d 65 | 73 73 61 67 65 20 66 72 |* the me|ssage fr|
|00005ab0| 6f 6d 20 74 68 65 20 49 | 44 43 4d 50 20 2a 2f 0a |om the I|DCMP */.|
|00005ac0| 09 6c 6f 6e 67 20 63 6f | 6c 6f 72 3b 0a 0a 09 2f |.long co|lor;.../|
|00005ad0| 2a 20 67 65 74 20 63 6f | 6c 6f 72 20 66 72 6f 6d |* get co|lor from|
|00005ae0| 20 6d 65 6e 75 20 73 74 | 72 75 63 74 75 72 65 20 | menu st|ructure |
|00005af0| 2a 2f 0a 09 69 66 20 28 | 53 75 62 49 74 65 6d 31 |*/..if (|SubItem1|
|00005b00| 2e 46 6c 61 67 73 20 26 | 43 48 45 43 4b 45 44 29 |.Flags &|CHECKED)|
|00005b10| 20 63 6f 6c 6f 72 20 3d | 20 31 3b 0a 09 69 66 20 | color =| 1;..if |
|00005b20| 28 53 75 62 49 74 65 6d | 32 2e 46 6c 61 67 73 20 |(SubItem|2.Flags |
|00005b30| 26 43 48 45 43 4b 45 44 | 29 20 63 6f 6c 6f 72 20 |&CHECKED|) color |
|00005b40| 3d 20 32 3b 0a 09 69 66 | 20 28 53 75 62 49 74 65 |= 2;..if| (SubIte|
|00005b50| 6d 33 2e 46 6c 61 67 73 | 20 26 43 48 45 43 4b 45 |m3.Flags| &CHECKE|
|00005b60| 44 29 20 63 6f 6c 6f 72 | 20 3d 20 33 3b 0a 0a 09 |D) color| = 3;...|
|00005b70| 6f 66 66 5f 67 61 64 73 | 28 29 3b 20 2f 2a 20 64 |off_gads|(); /* d|
|00005b80| 69 73 61 62 6c 65 20 67 | 61 64 73 20 2a 2f 0a 0a |isable g|ads */..|
|00005b90| 09 77 68 69 6c 65 20 28 | 31 29 20 20 2f 2a 20 64 |.while (|1) /* d|
|00005ba0| 6f 20 74 69 6c 6c 20 73 | 74 6f 70 20 20 6f 72 20 |o till s|top or |
|00005bb0| 63 6c 6f 73 65 20 6d 73 | 67 20 63 6f 6d 65 73 20 |close ms|g comes |
|00005bc0| 69 6e 20 2a 2f 0a 09 09 | 7b 0a 0a 09 09 69 66 20 |in */...|{....if |
|00005bd0| 28 20 28 6d 65 73 73 61 | 67 65 20 3d 20 28 73 74 |( (messa|ge = (st|
|00005be0| 72 75 63 74 20 49 6e 74 | 75 69 4d 65 73 73 61 67 |ruct Int|uiMessag|
|00005bf0| 65 20 2a 29 0a 09 09 20 | 20 47 65 74 4d 73 67 28 |e *)... | GetMsg(|
|00005c00| 00 00 00 08 00 00 00 23 | 00 00 00 0b 00 00 01 e8 |.......#|........|
|00005c10| 00 00 00 2f fa 60 8d 46 | 77 47 2d 3e 55 73 65 72 |.../.`.F|wG->User|
|00005c20| 50 6f 72 74 29 20 29 20 | 21 3d 20 4e 55 4c 4c 29 |Port) ) |!= NULL)|
|00005c30| 0a 09 09 09 7b 0a 09 09 | 09 63 6c 61 73 73 20 3d |....{...|.class =|
|00005c40| 20 6d 65 73 73 61 67 65 | 2d 3e 43 6c 61 73 73 3b | message|->Class;|
|00005c50| 0a 09 09 09 52 65 70 6c | 79 4d 73 67 28 6d 65 73 |....Repl|yMsg(mes|
|00005c60| 73 61 67 65 29 3b 0a 09 | 09 09 69 66 20 28 63 6c |sage);..|..if (cl|
|00005c70| 61 73 73 20 3d 3d 20 43 | 4c 4f 53 45 57 49 4e 44 |ass == C|LOSEWIND|
|00005c80| 4f 57 29 20 20 64 6f 6e | 65 28 30 29 3b 20 2f 2a |OW) don|e(0); /*|
|00005c90| 20 65 78 69 74 20 2a 2f | 0a 09 09 09 69 66 20 28 | exit */|....if (|
|00005ca0| 63 6c 61 73 73 20 3d 3d | 20 4d 45 4e 55 50 49 43 |class ==| MENUPIC|
|00005cb0| 4b 29 20 63 6f 6e 74 69 | 6e 75 65 3b 20 2f 2a 20 |K) conti|nue; /* |
|00005cc0| 69 67 6e 6f 72 65 20 6d | 65 6e 75 73 20 2a 2f 0a |ignore m|enus */.|
|00005cd0| 09 09 09 62 72 65 61 6b | 3b 20 20 20 20 2f 2a 20 |...break|; /* |
|00005ce0| 65 6c 73 65 20 53 54 4f | 50 20 2a 2f 0a 09 09 09 |else STO|P */....|
|00005cf0| 7d 0a 0a 09 09 2f 2a 20 | 4a 75 73 74 20 73 6f 6d |}..../* |Just som|
|00005d00| 65 74 68 69 6e 67 20 74 | 6f 20 64 6f 3a 20 46 6c |ething t|o do: Fl|
|00005d10| 61 73 68 20 61 20 63 6f | 75 70 6c 65 20 6f 66 20 |ash a co|uple of |
|00005d20| 6c 69 6e 65 73 20 2a 2f | 0a 0a 09 09 53 65 74 41 |lines */|....SetA|
|00005d30| 50 65 6e 28 72 70 47 2c | 63 6f 6c 6f 72 29 3b 0a |Pen(rpG,|color);.|
|00005d40| 09 09 4d 6f 76 65 28 72 | 70 47 2c 35 30 4c 2c 31 |..Move(r|pG,50L,1|
|00005d50| 30 30 4c 29 3b 0a 09 09 | 44 72 61 77 28 72 70 47 |00L);...|Draw(rpG|
|00005d60| 2c 38 30 4c 2c 31 30 30 | 4c 29 3b 0a 09 09 69 66 |,80L,100|L);...if|
|00005d70| 20 28 64 65 6c 61 79 29 | 20 44 65 6c 61 79 28 64 | (delay)| Delay(d|
|00005d80| 65 6c 61 79 29 3b 0a 0a | 09 09 53 65 74 41 50 65 |elay);..|..SetAPe|
|00005d90| 6e 28 72 70 47 2c 30 4c | 29 3b 0a 09 09 44 72 61 |n(rpG,0L|);...Dra|
|00005da0| 77 28 72 70 47 2c 35 30 | 4c 2c 31 30 30 4c 29 3b |w(rpG,50|L,100L);|
|00005db0| 0a 09 09 69 66 20 28 64 | 65 6c 61 79 29 20 44 65 |...if (d|elay) De|
|00005dc0| 6c 61 79 28 64 65 6c 61 | 79 29 3b 0a 0a 09 09 53 |lay(dela|y);....S|
|00005dd0| 65 74 41 50 65 6e 28 72 | 70 47 2c 63 6f 6c 6f 72 |etAPen(r|pG,color|
|00005de0| 29 3b 0a 09 09 4d 6f 76 | 65 28 72 70 47 2c 36 35 |);...Mov|e(rpG,65|
|00005df0| 4c 2c 31 31 35 4c 29 3b | 0a 09 09 44 72 61 77 28 |L,115L);|...Draw(|
|00005e00| 00 00 00 08 00 00 00 23 | 00 00 00 0c 00 00 01 e8 |.......#|........|
|00005e10| 00 00 00 30 58 51 f8 d4 | 72 70 47 2c 36 35 4c 2c |...0XQ..|rpG,65L,|
|00005e20| 38 35 4c 29 3b 0a 09 09 | 69 66 20 28 64 65 6c 61 |85L);...|if (dela|
|00005e30| 79 29 20 44 65 6c 61 79 | 28 64 65 6c 61 79 29 3b |y) Delay|(delay);|
|00005e40| 0a 0a 09 09 53 65 74 41 | 50 65 6e 28 72 70 47 2c |....SetA|Pen(rpG,|
|00005e50| 30 4c 29 3b 0a 09 09 44 | 72 61 77 28 72 70 47 2c |0L);...D|raw(rpG,|
|00005e60| 36 35 4c 2c 31 31 35 4c | 29 3b 0a 09 09 53 65 74 |65L,115L|);...Set|
|00005e70| 41 50 65 6e 28 72 70 47 | 2c 63 6f 6c 6f 72 29 3b |APen(rpG|,color);|
|00005e80| 0a 09 09 69 66 20 28 64 | 65 6c 61 79 29 20 44 65 |...if (d|elay) De|
|00005e90| 6c 61 79 28 64 65 6c 61 | 79 29 3b 0a 0a 09 09 7d |lay(dela|y);....}|
|00005ea0| 0a 0a 09 6f 6e 5f 67 61 | 64 73 28 29 3b 20 2f 2a |...on_ga|ds(); /*|
|00005eb0| 20 65 6e 61 62 6c 65 20 | 67 61 64 73 20 2a 2f 0a | enable |gads */.|
|00005ec0| 7d 0a 0a 2f 2a 0a 20 2a | 20 53 61 6d 70 6c 65 20 |}../*. *| Sample |
|00005ed0| 6f 70 65 6e 20 72 6f 75 | 74 69 6e 65 20 74 68 61 |open rou|tine tha|
|00005ee0| 74 20 64 6f 65 73 20 6e | 6f 74 68 69 6e 67 20 62 |t does n|othing b|
|00005ef0| 75 74 20 74 65 73 74 20 | 61 6e 20 41 75 74 6f 52 |ut test |an AutoR|
|00005f00| 65 71 75 65 73 74 0a 20 | 2a 2f 0a 0a 64 6f 5f 6f |equest. |*/..do_o|
|00005f10| 70 65 6e 28 29 0a 7b 0a | 0a 09 2f 2a 20 50 75 74 |pen().{.|../* Put|
|00005f20| 20 69 6e 20 61 20 63 61 | 6c 6c 20 74 6f 20 79 6f | in a ca|ll to yo|
|00005f30| 75 72 20 66 61 76 6f 72 | 69 74 65 20 66 69 6c 65 |ur favor|ite file|
|00005f40| 20 72 65 71 75 65 73 74 | 65 72 20 2a 2f 0a 0a 09 | request|er */...|
|00005f50| 77 68 69 6c 65 20 28 31 | 20 2f 2a 20 77 6f 75 6c |while (1| /* woul|
|00005f60| 64 20 6e 6f 72 6d 61 6c | 6c 79 20 61 74 74 65 6d |d normal|ly attem|
|00005f70| 70 74 20 6f 70 65 6e 20 | 68 65 72 65 20 2a 2f 20 |pt open |here */ |
|00005f80| 29 0a 09 09 7b 0a 09 09 | 69 66 20 28 41 75 74 6f |)...{...|if (Auto|
|00005f90| 52 65 71 75 65 73 74 28 | 77 47 2c 26 6f 70 66 61 |Request(|wG,&opfa|
|00005fa0| 69 6c 74 78 74 2c 26 72 | 65 74 72 79 74 78 74 2c |iltxt,&r|etrytxt,|
|00005fb0| 26 63 61 6e 74 78 74 2c | 0a 09 09 09 30 4c 2c 30 |&cantxt,|....0L,0|
|00005fc0| 4c 2c 33 30 30 4c 2c 37 | 35 4c 29 29 20 63 6f 6e |L,300L,7|5L)) con|
|00005fd0| 74 69 6e 75 65 3b 0a 09 | 09 72 65 74 75 72 6e 3b |tinue;..|.return;|
|00005fe0| 0a 09 09 7d 0a 0a 7d 0a | 0a 0a 0a 2f 2a 0a 20 2a |...}..}.|.../*. *|
|00005ff0| 20 74 75 72 6e 20 62 61 | 63 6b 20 6f 6e 20 67 61 | turn ba|ck on ga|
|00006000| 00 00 00 08 00 00 00 23 | 00 00 00 0d 00 00 01 e8 |.......#|........|
|00006010| 00 00 00 31 25 bc 09 02 | 64 67 65 74 73 20 61 66 |...1%...|dgets af|
|00006020| 74 65 72 20 64 6f 69 6e | 67 20 69 74 0a 20 2a 2f |ter doin|g it. */|
|00006030| 0a 0a 6f 6e 5f 67 61 64 | 73 28 29 0a 7b 0a 09 52 |..on_gad|s().{..R|
|00006040| 65 6d 6f 76 65 47 4c 69 | 73 74 28 77 47 2c 26 47 |emoveGLi|st(wG,&G|
|00006050| 61 64 67 65 74 4c 69 73 | 74 31 2c 2d 31 4c 29 3b |adgetLis|t1,-1L);|
|00006060| 20 2f 2a 20 72 65 6d 6f | 76 65 20 61 6c 6c 20 67 | /* remo|ve all g|
|00006070| 61 64 67 65 74 73 20 2a | 2f 0a 09 4f 66 66 47 61 |adgets *|/..OffGa|
|00006080| 64 28 53 74 6f 70 5f 47 | 61 64 29 3b 20 20 20 2f |d(Stop_G|ad); /|
|00006090| 2a 20 64 69 73 61 62 6c | 65 20 53 54 4f 50 20 2a |* disabl|e STOP *|
|000060a0| 2f 0a 09 4f 6e 47 61 64 | 28 47 6f 5f 47 61 64 29 |/..OnGad|(Go_Gad)|
|000060b0| 3b 20 20 20 20 20 20 2f | 2a 20 45 6e 61 62 6c 65 |; /|* Enable|
|000060c0| 20 61 6c 6c 20 74 68 65 | 20 72 65 73 74 20 2a 2f | all the| rest */|
|000060d0| 0a 09 72 65 64 72 61 77 | 5f 73 63 72 28 29 3b 09 |..redraw|_scr();.|
|000060e0| 20 20 20 20 20 2f 2a 20 | 61 64 64 20 62 61 63 6b | /* |add back|
|000060f0| 20 67 61 64 67 65 74 73 | 20 61 6e 64 20 72 65 66 | gadgets| and ref|
|00006100| 72 65 73 68 20 73 63 72 | 65 65 6e 20 2a 2f 0a 09 |resh scr|een */..|
|00006110| 53 65 74 4d 65 6e 75 53 | 74 72 69 70 28 77 47 2c |SetMenuS|trip(wG,|
|00006120| 26 4d 65 6e 75 4c 69 73 | 74 31 29 3b 09 2f 2a 20 |&MenuLis|t1);./* |
|00006130| 61 74 74 61 63 68 20 6d | 79 20 4d 65 6e 75 20 2a |attach m|y Menu *|
|00006140| 2f 0a 7d 0a 0a 2f 2a 0a | 20 2a 20 64 69 73 61 62 |/.}../*.| * disab|
|00006150| 6c 65 20 67 61 64 67 65 | 74 73 20 77 68 69 6c 65 |le gadge|ts while|
|00006160| 20 64 6f 69 6e 67 20 69 | 74 0a 20 2a 2f 0a 0a 6f | doing i|t. */..o|
|00006170| 66 66 5f 67 61 64 73 28 | 29 0a 7b 0a 09 43 6c 65 |ff_gads(|).{..Cle|
|00006180| 61 72 4d 65 6e 75 53 74 | 72 69 70 28 77 47 29 3b |arMenuSt|rip(wG);|
|00006190| 20 20 20 20 20 20 2f 2a | 20 64 69 73 61 62 6c 65 | /*| disable|
|000061a0| 20 6d 65 6e 75 73 20 2a | 2f 0a 09 52 65 6d 6f 76 | menus *|/..Remov|
|000061b0| 65 47 4c 69 73 74 28 77 | 47 2c 26 47 61 64 67 65 |eGList(w|G,&Gadge|
|000061c0| 74 4c 69 73 74 31 2c 2d | 31 4c 29 3b 20 2f 2a 20 |tList1,-|1L); /* |
|000061d0| 72 65 6d 6f 76 65 20 61 | 6c 6c 20 67 61 64 67 65 |remove a|ll gadge|
|000061e0| 74 73 20 2a 2f 0a 09 4f | 6e 47 61 64 28 53 74 6f |ts */..O|nGad(Sto|
|000061f0| 70 5f 47 61 64 29 3b 20 | 20 20 20 20 2f 2a 20 65 |p_Gad); | /* e|
|00006200| 00 00 00 08 00 00 00 23 | 00 00 00 0e 00 00 01 e8 |.......#|........|
|00006210| 00 00 00 32 58 8d ca 39 | 6e 61 62 6c 65 20 53 54 |...2X..9|nable ST|
|00006220| 4f 50 20 2a 2f 0a 09 4f | 66 66 47 61 64 28 47 6f |OP */..O|ffGad(Go|
|00006230| 5f 47 61 64 29 3b 20 20 | 20 20 20 20 2f 2a 20 44 |_Gad); | /* D|
|00006240| 69 73 61 62 6c 65 20 61 | 6c 6c 20 74 68 65 20 72 |isable a|ll the r|
|00006250| 65 73 74 20 2a 2f 0a 09 | 72 65 64 72 61 77 5f 73 |est */..|redraw_s|
|00006260| 63 72 28 29 3b 09 20 20 | 20 20 20 2f 2a 20 61 64 |cr();. | /* ad|
|00006270| 64 20 62 61 63 6b 20 67 | 61 64 67 65 74 73 20 61 |d back g|adgets a|
|00006280| 6e 64 20 72 65 66 72 65 | 73 68 20 73 63 72 65 65 |nd refre|sh scree|
|00006290| 6e 20 2a 2f 0a 7d 0a 0a | 2f 2a 0a 20 2a 20 52 65 |n */.}..|/*. * Re|
|000062a0| 64 72 61 77 20 57 69 6e | 64 6f 77 0a 20 2a 20 20 |draw Win|dow. * |
|000062b0| 41 73 73 75 6d 65 73 20 | 47 61 64 67 65 74 73 20 |Assumes |Gadgets |
|000062c0| 68 61 76 65 20 62 65 65 | 6e 20 72 65 6d 6f 76 65 |have bee|n remove|
|000062d0| 64 0a 20 2a 2f 0a 0a 72 | 65 64 72 61 77 5f 73 63 |d. */..r|edraw_sc|
|000062e0| 72 28 29 0a 7b 0a 09 53 | 65 74 41 50 65 6e 28 72 |r().{..S|etAPen(r|
|000062f0| 70 47 2c 30 4c 29 3b 0a | 09 52 65 63 74 46 69 6c |pG,0L);.|.RectFil|
|00006300| 6c 28 72 70 47 2c 32 4c | 2c 31 35 4c 2c 28 6c 6f |l(rpG,2L|,15L,(lo|
|00006310| 6e 67 29 28 77 47 2d 3e | 57 69 64 74 68 2d 33 29 |ng)(wG->|Width-3)|
|00006320| 2c 28 6c 6f 6e 67 29 28 | 77 47 2d 3e 48 65 69 67 |,(long)(|wG->Heig|
|00006330| 68 74 2d 32 29 29 3b 0a | 09 41 64 64 47 4c 69 73 |ht-2));.|.AddGLis|
|00006340| 74 28 77 47 2c 26 47 61 | 64 67 65 74 4c 69 73 74 |t(wG,&Ga|dgetList|
|00006350| 31 2c 30 4c 2c 2d 31 4c | 2c 4e 55 4c 4c 29 3b 0a |1,0L,-1L|,NULL);.|
|00006360| 09 52 65 66 72 65 73 68 | 47 4c 69 73 74 28 26 47 |.Refresh|GList(&G|
|00006370| 61 64 67 65 74 4c 69 73 | 74 31 2c 77 47 2c 4e 55 |adgetLis|t1,wG,NU|
|00006380| 4c 4c 2c 2d 31 4c 29 3b | 0a 09 64 6f 5f 74 69 74 |LL,-1L);|..do_tit|
|00006390| 6c 65 28 29 3b 0a 7d 0a | 0a 2f 2a 0a 20 2a 20 50 |le();.}.|./*. * P|
|000063a0| 75 74 20 75 70 20 74 69 | 74 6c 65 20 6c 69 6e 65 |ut up ti|tle line|
|000063b0| 0a 20 2a 2f 0a 0a 64 6f | 5f 74 69 74 6c 65 28 29 |. */..do|_title()|
|000063c0| 0a 7b 0a 09 6c 6f 6e 67 | 20 78 70 6f 73 2c 20 74 |.{..long| xpos, t|
|000063d0| 78 74 6c 65 6e 3b 0a 09 | 69 66 20 28 74 69 74 6c |xtlen;..|if (titl|
|000063e0| 65 5b 30 5d 20 3d 3d 20 | 27 5c 30 27 29 20 72 65 |e[0] == |'\0') re|
|000063f0| 74 75 72 6e 3b 0a 09 74 | 78 74 6c 65 6e 20 3d 20 |turn;..t|xtlen = |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.